Back to index

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

List of all members.

Static Public Attributes

tuple parser_signature = Sig(prog='PROG')
list argument_signatures
list argument_group_signatures
string usage
string help
string version = ''

Detailed Description

Test basic usage messages

Definition at line 3164 of file test_argparse.py.


Member Data Documentation

Initial value:
[
        (Sig('group'), [
            Sig('-y', nargs='?', help='y'),
            Sig('-z', nargs=3, help='z'),
            Sig('d', help='d', nargs='*'),
            Sig('e', help='e', nargs='+'),
        ])
    ]

Definition at line 3175 of file test_argparse.py.

Initial value:
[
        Sig('-w', nargs='+', help='w'),
        Sig('-x', nargs='*', help='x'),
        Sig('a', help='a'),
        Sig('b', help='b', nargs=2),
        Sig('c', help='c', nargs='?'),
    ]

Definition at line 3168 of file test_argparse.py.

Initial value:
'''\

    positional arguments:
      a               a
      b               b
      c               c

    optional arguments:
      -h, --help      show this help message and exit
      -w W [W ...]    w
      -x [X [X ...]]  x

    group:
      -y [Y]          y
      -z Z Z Z        z
      d               d
      e               e
    '''

Definition at line 3187 of file test_argparse.py.

Definition at line 3167 of file test_argparse.py.

Initial value:
'''\
    usage: PROG [-h] [-w W [W ...]] [-x [X [X ...]]] [-y [Y]] [-z Z Z Z]
                a b b [c] [d [d ...]] e [e ...]
    '''

Definition at line 3183 of file test_argparse.py.

Definition at line 3205 of file test_argparse.py.


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