Back to index

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

Definition at line 3842 of file test_argparse.py.


Member Data Documentation

Initial value:
[
        (Sig('title', description='    This text\n'
                                  '  should be indented\n'
                                  '    exactly like it is here\n'),
         [Sig('--bar', help='bar help')]),
    ]

Definition at line 3857 of file test_argparse.py.

Initial value:
[
        Sig('--foo', help='  foo help should not\n'
                          '    retain this odd formatting'),
        Sig('spam', help='spam help'),
    ]

Definition at line 3852 of file test_argparse.py.

Initial value:
'''\

    Keep the formatting
        exactly as it is written

    here

    positional arguments:
      spam        spam help

    optional arguments:
      -h, --help  show this help message and exit
      --foo FOO   foo help should not retain this odd formatting

    title:
          This text
        should be indented
          exactly like it is here

      --bar BAR   bar help
    '''

Definition at line 3866 of file test_argparse.py.

Initial value:
Sig(
        prog='PROG', formatter_class=argparse.RawDescriptionHelpFormatter,
        description='Keep the formatting\n'
                    '    exactly as it is written\n'
                    '\n'
                    'here\n')

Definition at line 3845 of file test_argparse.py.

Initial value:
'''\
    usage: PROG [-h] [--foo FOO] [--bar BAR] spam
    '''

Definition at line 3863 of file test_argparse.py.

Definition at line 3887 of file test_argparse.py.


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