Back to index

python3.2  3.2.2
Static Public Attributes
test.test_argparse.TestHelpBiggerOptionals Class Reference
Collaboration diagram for test.test_argparse.TestHelpBiggerOptionals:
Collaboration graph
[legend]

List of all members.

Static Public Attributes

tuple parser_signature
list argument_signatures
list argument_group_signatures = []
string usage
string help
string version

Detailed Description

Make sure that argument help aligns when options are longer

Definition at line 2905 of file test_argparse.py.


Member Data Documentation

Definition at line 2916 of file test_argparse.py.

Initial value:
[
        Sig('-x', action='store_true', help='X HELP'),
        Sig('--y', help='Y HELP'),
        Sig('foo', help='FOO HELP'),
        Sig('bar', help='BAR HELP'),
    ]

Definition at line 2910 of file test_argparse.py.

Initial value:
'''\

    DESCRIPTION

    positional arguments:
      foo            FOO HELP
      bar            BAR HELP

    optional arguments:
      -h, --help     show this help message and exit
      -v, --version  show program's version number and exit
      -x             X HELP
      --y Y          Y HELP

    EPILOG
'''

Definition at line 2920 of file test_argparse.py.

Initial value:
Sig(prog='PROG', description='DESCRIPTION',
                           epilog='EPILOG', version='0.1')

Definition at line 2908 of file test_argparse.py.

Initial value:
'''\
    usage: PROG [-h] [-v] [-x] [--y Y] foo bar
    '''

Definition at line 2917 of file test_argparse.py.

Initial value:
'''\
    0.1
    '''

Definition at line 2936 of file test_argparse.py.


The documentation for this class was generated from the following file: