module documentation

distutils.fancy_getopt Wrapper around the standard getopt module that provides the following additional features: * short and long options are tied together * options have help strings, so fancy_getopt could potentially create a complete usage summary * options set attributes of a passed-in object

Class FancyGetopt Wrapper around the standard 'getopt()' module that provides some handy extra functionality: * short and long options are tied together * options have help strings, and help text can be assembled from them * options set attributes of a passed-in object * boolean options can have "negative aliases" -- eg...
Class OptionDummy Dummy class just used as a place to hold command-line option values as instance attributes.
Function fancy_getopt Undocumented
Function translate_longopt Convert a long option name to a valid Python identifier by changing "-" to "_".
Function wrap_text wrap_text(text : string, width : int) -> [string]
Constant WS_TRANS Undocumented
Variable longopt_pat Undocumented
Variable longopt_re Undocumented
Variable longopt_xlate Undocumented
Variable neg_alias_re Undocumented
def fancy_getopt(options, negative_opt, object, args): (source)

Undocumented

def translate_longopt(opt): (source)

Convert a long option name to a valid Python identifier by changing "-" to "_".

def wrap_text(text, width): (source)

wrap_text(text : string, width : int) -> [string] Split 'text' into multiple lines of no more than 'width' characters each, and return the list of strings that results.

WS_TRANS = (source)

Undocumented

Value
{ord(_wschar): ' ' for _wschar in string.whitespace}
longopt_pat: str = (source)

Undocumented

longopt_re = (source)

Undocumented

longopt_xlate = (source)

Undocumented

neg_alias_re = (source)

Undocumented