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
Warning: Should be replaced with textwrap (which is available in Python 2.3 and later).
If an option takes an argument, it's 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
The FancyGetopt class provides the following methods:
If args is
None or not supplied, uses
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.
If supplied, prints the supplied header at the top of the help.
See About this document... for information on suggesting changes.