mvpa2.misc.cmdline.Option

Inheritance diagram of Option

class mvpa2.misc.cmdline.Option(*opts, **attrs)
Instance attributes:

_short_opts : [string] _long_opts : [string]

action : string type : string dest : string default : any nargs : int const : any choices : [string] callback : function callback_args : (any*) callback_kwargs : { string : any } help : string metavar : string

Methods

check_value(opt, value)
convert_value(opt, value)
get_opt_string()
process(opt, value, values, parser)
take_action(action, dest, opt, value, ...)
takes_value()
ACTIONS = ('store', 'store_const', 'store_true', 'store_false', 'append', 'append_const', 'count', 'callback', 'help', 'version')
ALWAYS_TYPED_ACTIONS = ('store', 'append')
ATTRS = ['action', 'type', 'dest', 'default', 'nargs', 'const', 'choices', 'callback', 'callback_args', 'callback_kwargs', 'help', 'metavar']
CHECK_METHODS = [<function _check_action at 0x7f015e335050>, <function _check_type at 0x7f015e3350c8>, <function _check_choice at 0x7f015e335140>, <function _check_dest at 0x7f015e3351b8>, <function _check_const at 0x7f015e335230>, <function _check_nargs at 0x7f015e3352a8>, <function _check_callback at 0x7f015e335320>]
CONST_ACTIONS = ('store_const', 'append_const')
STORE_ACTIONS = ('store', 'store_const', 'store_true', 'store_false', 'append', 'append_const', 'count')
TYPED_ACTIONS = ('store', 'append', 'callback')
TYPES = ('string', 'int', 'long', 'float', 'complex', 'choice')
TYPE_CHECKER = {'int': <function check_builtin at 0x7f015e332c80>, 'float': <function check_builtin at 0x7f015e332c80>, 'complex': <function check_builtin at 0x7f015e332c80>, 'long': <function check_builtin at 0x7f015e332c80>, 'choice': <function check_choice at 0x7f015e332cf8>}
check_value(opt, value)
convert_value(opt, value)
get_opt_string()
process(opt, value, values, parser)
take_action(action, dest, opt, value, values, parser)
takes_value()

Previous topic

mvpa2.misc.cmdline.Options

NeuroDebian

NITRC-listed