|
OpenQuizz
Une application de gestion des contenus pédagogiques
|
Data Structures | |
| class | FancyGetopt |
| class | OptionDummy |
Functions | |
| def | fancy_getopt (options, negative_opt, object, args) |
| def | wrap_text (text, width) |
| def | translate_longopt (opt) |
Variables | |
| longopt_pat | |
| longopt_re | |
| neg_alias_re | |
| longopt_xlate | |
| WS_TRANS | |
| text | |
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
| def setuptools._distutils.fancy_getopt.fancy_getopt | ( | options, | |
| negative_opt, | |||
| object, | |||
| args | |||
| ) |
| def setuptools._distutils.fancy_getopt.translate_longopt | ( | opt | ) |
Convert a long option name to a valid Python identifier by changing "-" to "_".
| def setuptools._distutils.fancy_getopt.wrap_text | ( | text, | |
| width | |||
| ) |
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.
| longopt_pat |
| longopt_re |
| longopt_xlate |
| neg_alias_re |
| text |
| WS_TRANS |