Back to index

python3.2  3.2.2
Static Public Attributes
test.test_argparse.TestHelpArgumentDefaults Class Reference
Collaboration diagram for test.test_argparse.TestHelpArgumentDefaults:
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

Test the ArgumentDefaultsHelpFormatter

Definition at line 3890 of file test_argparse.py.


Member Data Documentation

Initial value:
[
        (Sig('title', description='description'),
         [Sig('--baz', type=int, default=42, help='baz help')]),
    ]

Definition at line 3903 of file test_argparse.py.

Initial value:
[
        Sig('--foo', help='foo help - oh and by the way, %(default)s'),
        Sig('--bar', action='store_true', help='bar help'),
        Sig('spam', help='spam help'),
        Sig('badger', nargs='?', default='wooden', help='badger help'),
    ]

Definition at line 3897 of file test_argparse.py.

Initial value:
'''\

    description

    positional arguments:
      spam        spam help
      badger      badger help (default: wooden)

    optional arguments:
      -h, --help  show this help message and exit
      --foo FOO   foo help - oh and by the way, None
      --bar       bar help (default: False)

    title:
      description

      --baz BAZ   baz help (default: 42)
    '''

Definition at line 3910 of file test_argparse.py.

Initial value:
Sig(
        prog='PROG', formatter_class=argparse.ArgumentDefaultsHelpFormatter,
        description='description')

Definition at line 3893 of file test_argparse.py.

Initial value:
'''\
    usage: PROG [-h] [--foo FOO] [--bar] [--baz BAZ] spam [badger]
    '''

Definition at line 3907 of file test_argparse.py.

Definition at line 3928 of file test_argparse.py.


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