optparse.Option¶
-
class
optparse.Option(*opts, **attrs)[source]¶ - 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¶
__init__(*opts, **attrs) |
|
__repr__() |
|
__str__() |
|
_check_action() |
|
_check_callback() |
|
_check_choice() |
|
_check_const() |
|
_check_dest() |
|
_check_nargs() |
|
_check_opt_strings(opts) |
|
_check_type() |
|
_set_attrs(attrs) |
|
_set_opt_strings(opts) |
|
check_value(opt, value) |
|
convert_value(opt, value) |
|
get_opt_string() |
|
process(opt, value, values, parser) |
|
take_action(action, dest, opt, value, ...) |
|
takes_value() |