OpenQuizz
Une application de gestion des contenus pédagogiques
setuptools._distutils.fancy_getopt Namespace Reference

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
 

Detailed Description

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

Function Documentation

◆ fancy_getopt()

def setuptools._distutils.fancy_getopt.fancy_getopt (   options,
  negative_opt,
  object,
  args 
)

◆ translate_longopt()

def setuptools._distutils.fancy_getopt.translate_longopt (   opt)
Convert a long option name to a valid Python identifier by
changing "-" to "_".

◆ wrap_text()

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.

Variable Documentation

◆ longopt_pat

longopt_pat

◆ longopt_re

longopt_re

◆ longopt_xlate

longopt_xlate

◆ neg_alias_re

neg_alias_re

◆ text

text

◆ WS_TRANS

WS_TRANS