Back to index

python3.2  3.2.2
Static Public Attributes
test.test_argparse.TestOptionalsAlternatePrefixCharsAddedHelp Class Reference

List of all members.

Static Public Attributes

tuple parser_signature = Sig(prefix_chars='+:/', add_help=True)
list argument_signatures
list failures = ['--bar', '-fbar', '-b B', 'B', '-f', '--bar B', '-baz']
list successes

Detailed Description

When ``-`` not in prefix_chars, default operators created for help
   should use the prefix_chars in use rather than - or --

Definition at line 447 of file

Member Data Documentation

Initial value:
        Sig('+f', action='store_true'),
        Sig('/baz', action='store_const', const=42),

Definition at line 453 of file

list test.test_argparse.TestOptionalsAlternatePrefixCharsAddedHelp.failures = ['--bar', '-fbar', '-b B', 'B', '-f', '--bar B', '-baz'] [static]

Definition at line 458 of file

tuple test.test_argparse.TestOptionalsAlternatePrefixCharsAddedHelp.parser_signature = Sig(prefix_chars='+:/', add_help=True) [static]

Definition at line 452 of file

Initial value:
        ('', NS(f=False, bar=None, baz=None)),
        ('+f', NS(f=True, bar=None, baz=None)),
        ('::ba B', NS(f=False, bar='B', baz=None)),
        ('+f ::bar B', NS(f=True, bar='B', baz=None)),
        ('+f /b', NS(f=True, bar=None, baz=42)),
        ('/ba +f', NS(f=True, bar=None, baz=42))

Definition at line 459 of file

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