Back to index

python3.2  3.2.2
Static Public Attributes
test.test_argparse.TestHelpReformatting Class Reference
Collaboration diagram for test.test_argparse.TestHelpReformatting:
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 text after short names starts on the first line

Definition at line 3018 of file test_argparse.py.


Member Data Documentation

Initial value:
[
        (Sig('title', description='\n'
                                  '    oddly formatted group\n'
                                  '\n'
                                  'description'),
         [Sig('-a', action='store_true',
              help=' oddly \n'
                   'formatted    -a  help  \n'
                   '    again, so long that it should be wrapped over '
                   'multiple lines')]),
    ]

Definition at line 3033 of file test_argparse.py.

Initial value:
[
        Sig('-x', metavar='XX', help='oddly\n'
                                     '    formatted -x help'),
        Sig('y', metavar='yyy', help='normal y help'),
    ]

Definition at line 3028 of file test_argparse.py.

Initial value:
'''\

    oddly formatted description that is so long that it should go onto \
multiple
    lines when wrapped

    positional arguments:
      yyy         normal y help

    optional arguments:
      -h, --help  show this help message and exit
      -x XX       oddly formatted -x help

    title:
      oddly formatted group description

      -a          oddly formatted -a help again, so long that it should \
be wrapped
                  over multiple lines
    '''

Definition at line 3047 of file test_argparse.py.

Initial value:
Sig(
        prog='PROG',
        description='   oddly    formatted\n'
                    'description\n'
                    '\n'
                    'that is so long that it should go onto multiple '
                    'lines when wrapped')

Definition at line 3021 of file test_argparse.py.

Initial value:
'''\
    usage: PROG [-h] [-x XX] [-a] yyy
    '''

Definition at line 3044 of file test_argparse.py.

Definition at line 3067 of file test_argparse.py.


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