InfoChoice Class Reference
+ Inheritance diagram for InfoChoice:

Public Member Functions

def __init__ (self, option, comment="")
 
def __str__ (self)
 
def __repr__ (self)
 
def __eq__ (self, other)
 

Public Attributes

 option
 
 comment
 

Detailed Description

 Choice item with (explanatory) information

 to be used in choices keyword of add_argument function

 example:
 p.add_argument('-processor', choices=[InfoChoice('local', 'use current python interpreter'), InfoChoice('gearman', 'submit job to a remote gearman instance')])