Choice item with (explanatory) information. More...
Public Member Functions | |
def | __init__ (self, option, comment="") |
def | __str__ (self) |
def | __repr__ (self) |
def | __eq__ (self, other) |
Public Attributes | |
option | |
comment | |
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')])