| Method Summary |
| |
__init__(self,
usage,
option_list,
option_class,
version,
conflict_handler,
description,
long_description,
formatter,
add_help_option,
prog,
copyright,
add_verbose_options,
add_random_options)
|
| |
parse_args(self,
args,
values)
|
| Inherited from OptionParser |
| |
add_option_group(self,
*args,
**kwargs)
|
| |
check_values(self,
values,
args)
check_values(values : Values, args : [string])
-> (values : Values, args : [string])
Check that the supplied option values and leftover arguments are
valid. |
| |
disable_interspersed_args(self)
|
| |
enable_interspersed_args(self)
|
| |
error(self,
msg)
error(msg : string)
Print a usage message incorporating 'msg' to stderr and exit. |
| |
exit(self,
status,
msg)
|
| |
expand_prog_name(self,
s)
|
| |
format_help(self,
formatter)
|
| |
format_option_help(self,
formatter)
|
| |
get_default_values(self)
|
| |
get_description(self)
|
| |
get_option_group(self,
opt_str)
|
| |
get_prog_name(self)
|
| |
get_usage(self)
|
| |
get_version(self)
|
| |
print_help(self,
file)
print_help(file : file = stdout)
Print an extended help message, listing all options and any
help text provided with them, to 'file' (default stdout). |
| |
print_usage(self,
file)
print_usage(file : file = stdout)
Print the usage message for the current program (self.usage) to
'file' (default stdout). |
| |
print_version(self,
file)
print_version(file : file = stdout)
Print the version message for this program (self.version) to
'file' (default stdout). |
| |
set_default(self,
dest,
value)
|
| |
set_defaults(self,
**kwargs)
|
| |
set_process_default_values(self,
process)
|
| |
set_usage(self,
usage)
|
| Inherited from OptionContainer |
| |
add_option(self,
*args,
**kwargs)
add_option(Option)... |
| |
add_options(self,
option_list)
|
| |
format_description(self,
formatter)
|
| |
get_option(self,
opt_str)
|
| |
has_option(self,
opt_str)
|
| |
remove_option(self,
opt_str)
|
| |
set_conflict_handler(self,
handler)
|
| |
set_description(self,
description)
|