| Method Summary |
| |
error(self,
msg)
Print our usage+error page. |
| |
print_usage(self,
file)
Our usage+error page already has this. |
| Inherited from OptionParser |
| |
__init__(self,
usage,
option_list,
option_class,
version,
conflict_handler)
|
| |
add_option(self,
*args,
**kwargs)
add_option(Option)... |
| |
add_options(self,
option_list)
|
| |
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)
|
| |
get_option(self,
opt_str)
|
| |
has_option(self,
opt_str)
|
| |
parse_args(self,
args,
values)
parse_args(args : [string] = sys.argv[1:],
values : Values = None)
-> (values : Values, args : [string])
Parse the command-line options found in 'args' (default:
sys.argv[1:]). |
| |
print_help(self,
file)
|
| |
print_version(self,
file)
|
| |
remove_option(self,
opt_str)
|
| |
set_conflict_handler(self,
handler)
|
| |
set_default(self,
dest,
value)
|
| |
set_defaults(self,
**kwargs)
|
| |
set_usage(self,
usage)
|