This module provides a wrapper around the standard getopt module that provides the following additional features:
Should be replaced with optik (which is also now known as optparse in Python 2.3 and later).
| options, negative_opt, object, args) |
sys.argv[1:] if you
pass None as args.
| text, width) |
Warning: Should be replaced with textwrap (which is available in Python 2.3 and later).
[option_table=None]) |
If an option takes an argument, its long_option should have '='
appended; short_option should just be a single character, no ':'
in any case. short_option should be None if a long_option
doesn't have a corresponding short_option. All option tuples must have
long options.
The FancyGetopt class provides the following methods:
[args=None, object=None]) |
If args is None or not supplied, uses sys.argv[1:]. If
object is None or not supplied, creates a new OptionDummy
instance, stores option values there, and returns a tuple "(args,
object)". If object is supplied, it is modified in place and
getopt() just returns args; in both cases, the returned
args is a modified copy of the passed-in args list, which
is left untouched.
| ) |
[header=None]) |
If supplied, prints the supplied header at the top of the help.
See About this document... for information on suggesting changes. Document provided by Web Master Resources and hosted at Speedy Domain Registration Company