Back to index

python3.2  3.2.2
Static Public Attributes
test.test_argparse.TestHelpTupleMetavar Class Reference
Collaboration diagram for test.test_argparse.TestHelpTupleMetavar:
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 specifying metavar as a tuple

Definition at line 3766 of file test_argparse.py.


Member Data Documentation

Definition at line 3776 of file test_argparse.py.

Initial value:
[
        Sig('-w', help='w', nargs='+', metavar=('W1', 'W2')),
        Sig('-x', help='x', nargs='*', metavar=('X1', 'X2')),
        Sig('-y', help='y', nargs=3, metavar=('Y1', 'Y2', 'Y3')),
        Sig('-z', help='z', nargs='?', metavar=('Z1', )),
    ]

Definition at line 3770 of file test_argparse.py.

Initial value:
'''\

    optional arguments:
      -h, --help        show this help message and exit
      -w W1 [W2 ...]    w
      -x [X1 [X2 ...]]  x
      -y Y1 Y2 Y3       y
      -z [Z1]           z
    '''

Definition at line 3781 of file test_argparse.py.

Definition at line 3769 of file test_argparse.py.

Initial value:
'''\
    usage: PROG [-h] [-w W1 [W2 ...]] [-x [X1 [X2 ...]]] [-y Y1 Y2 Y3] \
[-z [Z1]]
    '''

Definition at line 3777 of file test_argparse.py.

Definition at line 3790 of file test_argparse.py.


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