Lines Matching defs:Sig

103 class Sig(object):
192 argument_signatures -- a list of Sig objects which specify
209 cls.parser_signature = Sig()
310 argument_signatures = [Sig('-x')]
325 Sig('-x', action='store_true'),
326 Sig('-yyy', action='store_const', const=42),
327 Sig('-z'),
350 argument_signatures = [Sig('-foo')]
364 argument_signatures = [Sig('-f'), Sig('-foobar'), Sig('-foorab')]
380 argument_signatures = [Sig('-foobar'), Sig('-foorab')]
396 argument_signatures = [Sig('-1', dest='one')]
409 argument_signatures = [Sig('--foo')]
424 Sig('--badger', action='store_true'),
425 Sig('--bat'),
442 Sig('--badger', action='store_true'),
443 Sig('--ba'),
461 Sig('-f', action='store_true'),
462 Sig('--bar'),
463 Sig('-baz', action='store_const', const=42),
479 parser_signature = Sig(prefix_chars='+:/', add_help=False)
481 Sig('+f', action='store_true'),
482 Sig('::bar'),
483 Sig('/baz', action='store_const', const=42),
501 parser_signature = Sig(prefix_chars='+:/', add_help=True)
503 Sig('+f', action='store_true'),
504 Sig('::bar'),
505 Sig('/baz', action='store_const', const=42),
521 parser_signature = Sig(prefix_chars='+-', add_help=False)
523 Sig('-x', action='store_true'),
524 Sig('+y', action='store_true'),
525 Sig('+z', action='store_true'),
545 Sig('-v', '--verbose', '-n', '--noisy', action='store_true'),
560 argument_signatures = [Sig('--foo-bar'), Sig('--baz', dest='zabbaz')]
573 argument_signatures = [Sig('-x'), Sig('-y', default=42)]
585 argument_signatures = [Sig('-x')]
596 argument_signatures = [Sig('-x', nargs=1)]
607 argument_signatures = [Sig('-x', nargs=3)]
619 Sig('-w', nargs='?'),
620 Sig('-x', nargs='?', const=42),
621 Sig('-y', nargs='?', default='spam'),
622 Sig('-z', nargs='?', type=int, const='42', default='84'),
642 Sig('-x', nargs='*'),
643 Sig('-y', nargs='*', default='spam'),
661 Sig('-x', nargs='+'),
662 Sig('-y', nargs='+', default='spam'),
678 Sig('-f', choices='abc'),
679 Sig('-g', type=int, choices=range(5))]
695 Sig('-x', type=int, required=True),
707 argument_signatures = [Sig('-x', action='store')]
718 argument_signatures = [Sig('-y', action='store_const', const=object)]
729 argument_signatures = [Sig('-z', action='store_false')]
740 argument_signatures = [Sig('--apple', action='store_true')]
750 argument_signatures = [Sig('--foo', action=argparse.BooleanOptionalAction)]
772 Sig('--foo', required=True, action=argparse.BooleanOptionalAction)
783 argument_signatures = [Sig('--baz', action='append')]
795 argument_signatures = [Sig('--baz', action='append', default=['X'])]
808 Sig('-f', action='append_const'),
809 Sig('--foo', action='append_const'),
810 Sig('-b', action='store_const'),
811 Sig('--bar', action='store_const')
827 Sig('-b', action='append_const', const=Exception),
828 Sig('-c', action='append', dest='b'),
842 Sig('-b', action='append_const', const=Exception, default=['X']),
843 Sig('-c', action='append', dest='b'),
856 argument_signatures = [Sig('-x', action='count')]
868 Sig('--foo'),
869 Sig('--foobaz'),
870 Sig('--fooble', action='store_true'),
884 parser_signature = Sig(allow_abbrev=False)
886 Sig('--foo'),
887 Sig('--foodle', action='store_true'),
888 Sig('--foonly'),
901 parser_signature = Sig(prefix_chars='+', allow_abbrev=False)
903 Sig('++foo'),
904 Sig('++foodle', action='store_true'),
905 Sig('++foonly'),
918 parser_signature = Sig(allow_abbrev=False)
920 Sig('-r'),
921 Sig('-c', action='count'),
937 parser_signature = Sig(prefix_chars='+', allow_abbrev=False)
939 Sig('+r'),
940 Sig('+c', action='count'),
960 argument_signatures = [Sig('foo')]
970 argument_signatures = [Sig('foo', nargs=1)]
980 argument_signatures = [Sig('foo', nargs=2)]
990 argument_signatures = [Sig('foo', nargs='*')]
1002 argument_signatures = [Sig('foo', nargs='*', default='bar')]
1014 argument_signatures = [Sig('foo', nargs='+')]
1025 argument_signatures = [Sig('foo', nargs='?')]
1036 argument_signatures = [Sig('foo', nargs='?', default=42)]
1050 Sig('foo', nargs='?', type=int, default='42'),
1062 argument_signatures = [Sig('foo'), Sig('bar')]
1072 argument_signatures = [Sig('foo'), Sig('bar', nargs=1)]
1082 argument_signatures = [Sig('foo', nargs=2), Sig('bar')]
1092 argument_signatures = [Sig('foo'), Sig('bar', nargs='*')]
1104 argument_signatures = [Sig('foo'), Sig('bar', nargs='+')]
1115 argument_signatures = [Sig('foo'), Sig('bar', nargs='?')]
1126 argument_signatures = [Sig('foo', nargs='*'), Sig('bar')]
1138 argument_signatures = [Sig('foo', nargs='+'), Sig('bar')]
1149 argument_signatures = [Sig('foo', nargs='?', default=42), Sig('bar')]
1160 argument_signatures = [Sig('foo', nargs=2), Sig('bar', nargs='*')]
1171 argument_signatures = [Sig('foo', nargs=2), Sig('bar', nargs='+')]
1181 argument_signatures = [Sig('foo', nargs=2), Sig('bar', nargs='?')]
1192 argument_signatures = [Sig('foo', nargs='*'), Sig('bar', nargs=1)]
1204 argument_signatures = [Sig('foo', nargs='+'), Sig('bar', nargs=1)]
1215 argument_signatures = [Sig('foo', nargs='?'), Sig('bar', nargs=1)]
1227 Sig('foo'),
1228 Sig('bar', nargs='*'),
1229 Sig('baz', nargs=1),
1242 Sig('foo'),
1243 Sig('bar', nargs='+'),
1244 Sig('baz', nargs=1),
1257 Sig('foo'),
1258 Sig('bar', nargs='?', default=0.625),
1259 Sig('baz', nargs=1),
1272 Sig('foo', nargs='?'),
1273 Sig('bar', nargs='?', default=42),
1286 argument_signatures = [Sig('foo', nargs='?'), Sig('bar', nargs='*')]
1299 argument_signatures = [Sig('foo', nargs='?'), Sig('bar', nargs='+')]
1311 argument_signatures = [Sig('spam', choices=set('abcdefg'))]
1322 argument_signatures = [Sig('spam', type=int, choices=range(20))]
1334 Sig('spam', action='append'),
1335 Sig('spam', action='append', nargs=2),
1350 Sig('x', nargs='?'),
1351 Sig('-4', dest='y', action='store_true'),
1366 Sig('x', nargs='?'),
1367 Sig('-k4', dest='y', action='store_true'),
1382 Sig('x', nargs='?'),
1383 Sig('-y', '--yyy', dest='y'),
1400 parser_signature = Sig(prefix_chars='-+')
1402 Sig('-', dest='x', nargs='?', const='badger'),
1403 Sig('+', dest='y', type=int, default=42),
1404 Sig('-+-', dest='z', action='store_true'),
1420 argument_signatures = [Sig('-x', nargs='*'), Sig('y', nargs='*')]
1436 argument_signatures = [Sig('x'), Sig('y', nargs='...'), Sig('-z')]
1450 Sig('-x', type=float),
1451 Sig('-3', type=float, dest='y'),
1452 Sig('z', nargs='*'),
1477 Sig('foo', nargs='?', default=argparse.SUPPRESS),
1478 Sig('bar', nargs='*', default=argparse.SUPPRESS),
1479 Sig('--baz', action='store_true', default=argparse.SUPPRESS),
1495 parser_signature = Sig(argument_default=argparse.SUPPRESS)
1497 Sig('foo', nargs='?'),
1498 Sig('bar', nargs='*'),
1499 Sig('--baz', action='store_true'),
1515 parser_signature = Sig(argument_default=42)
1517 Sig('--version', action='version', version='1.0'),
1518 Sig('foo', nargs='?'),
1519 Sig('bar', nargs='*'),
1520 Sig('--baz', action='store_true'),
1549 parser_signature = Sig(fromfile_prefix_chars='@')
1551 Sig('-a'),
1552 Sig('x'),
1553 Sig('y', nargs='+'),
1587 parser_signature = Sig(fromfile_prefix_chars='@')
1589 Sig('y', nargs='+'),
1688 Sig('-x', type=argparse.FileType()),
1689 Sig('spam', type=argparse.FileType('r')),
1709 Sig('-c', type=argparse.FileType('r'), default='no-file.txt'),
1728 Sig('-x', type=argparse.FileType('rb')),
1729 Sig('spam', type=argparse.FileType('rb')),
1767 Sig('-x', type=argparse.FileType('w')),
1768 Sig('spam', type=argparse.FileType('w')),
1790 Sig('-x', type=argparse.FileType('x')),
1791 Sig('spam', type=argparse.FileType('x')),
1805 Sig('-x', type=argparse.FileType('wb')),
1806 Sig('spam', type=argparse.FileType('wb')),
1822 Sig('-x', type=argparse.FileType('xb')),
1823 Sig('spam', type=argparse.FileType('xb')),
1871 Sig('--eggs', type=complex),
1872 Sig('spam', type=float),
1894 Sig('-x', type=MyType),
1895 Sig('spam', type=MyType),
1916 Sig('-x', type=C),
1917 Sig('spam', type=C),
2000 Sig('-s', dest='spam', action=OptionalAction,
2002 Sig('badger', action=PositionalAction,
2034 Sig('--foo', action="extend", nargs="+", type=str),
3419 parser_signature = Sig(prog='PROG', description='DESCRIPTION',
3422 Sig('-v', '--version', action='version', version='0.1'),
3423 Sig('-x', action='store_true', help='X HELP'),
3424 Sig('--y', help='Y HELP'),
3425 Sig('foo', help='FOO HELP'),
3426 Sig('bar', help='BAR HELP'),
3509 parser_signature = Sig(prog='PROG', description='DESCRIPTION',
3512 Sig('-v', '--version', action='version', version='0.1'),
3513 Sig('-x', action='store_true', help='X HELP'),
3514 Sig('--y', help='Y HELP'),
3515 Sig('foo', help='FOO HELP'),
3516 Sig('bar', help='BAR HELP'),
3519 (Sig('GROUP TITLE', description='GROUP DESCRIPTION'), [
3520 Sig('baz', help='BAZ HELP'),
3521 Sig('-z', nargs='+', help='Z HELP')]),
3556 parser_signature = Sig(usage='USAGE', description='DESCRIPTION')
3558 Sig('-x', action='store_true', help='X HELP'),
3559 Sig('--y', help='Y HELP'),
3560 Sig('ekiekiekifekang', help='EKI HELP'),
3561 Sig('bar', help='BAR HELP'),
3587 parser_signature = Sig(
3595 Sig('-x', metavar='XX', help='oddly\n'
3597 Sig('y', metavar='yyy', help='normal y help'),
3600 (Sig('title', description='\n'
3604 [Sig('-a', action='store_true',
3639 parser_signature = Sig(prog='PROG', description= 'D\nD' * 30)
3641 Sig('-x', metavar='XX', help='XHH HX' * 20),
3642 Sig('y', metavar='yyy', help='YH YH' * 20),
3645 (Sig('ALPHAS'), [
3646 Sig('-a', action='store_true', help='AHHH HHA' * 10)]),
3679 parser_signature = Sig(usage='USAGE', description= 'D D' * 30)
3681 Sig('-v', '--version', action='version', version='V V' * 30),
3682 Sig('-x', metavar='X' * 25, help='XH XH' * 20),
3683 Sig('y', metavar='y' * 25, help='YH YH' * 20),
3686 (Sig('ALPHAS'), [
3687 Sig('-a', metavar='A' * 25, help='AH AH' * 20),
3688 Sig('z', metavar='z' * 25, help='ZH ZH' * 20)]),
3733 parser_signature = Sig(prog='PROG')
3735 Sig('-w', nargs='+', help='w'),
3736 Sig('-x', nargs='*', help='x'),
3737 Sig('a', help='a'),
3738 Sig('b', help='b', nargs=2),
3739 Sig('c', help='c', nargs='?'),
3740 Sig('--foo', help='Whether to foo', action=argparse.BooleanOptionalAction),
3741 Sig('--bar', help='Whether to bar', default=True,
3743 Sig('-f', '--foobar', '--barfoo', action=argparse.BooleanOptionalAction),
3744 Sig('--bazz', action=argparse.BooleanOptionalAction,
3748 (Sig('group'), [
3749 Sig('-y', nargs='?', help='y'),
3750 Sig('-z', nargs=3, help='z'),
3751 Sig('d', help='d', nargs='*'),
3752 Sig('e', help='e', nargs='+'),
3788 parser_signature = Sig(prog='PROG')
3790 Sig('positional', metavar='(example) positional'),
3791 Sig('-p', '--optional', metavar='{1 (option A), 2 (option B)}'),
3812 parser_signature = Sig(prog='PROG', add_help=False)
3815 (Sig('xxxx'), [
3816 Sig('-x', help='x'),
3817 Sig('a', help='a'),
3819 (Sig('yyyy'), [
3820 Sig('b', help='b'),
3821 Sig('-y', help='y'),
3843 parser_signature = Sig(prog='P' * 60)
3845 Sig('-w', metavar='W'),
3846 Sig('-x', metavar='X'),
3847 Sig('a'),
3848 Sig('b'),
3872 parser_signature = Sig(prog='P' * 60)
3874 Sig('-w', metavar='W' * 25),
3875 Sig('-x', metavar='X' * 25),
3876 Sig('-y', metavar='Y' * 25),
3877 Sig('-z', metavar='Z' * 25),
3878 Sig('a'),
3879 Sig('b'),
3908 parser_signature = Sig(prog='P' * 60, add_help=False)
3910 Sig('a' * 25),
3911 Sig('b' * 25),
3912 Sig('c' * 25),
3933 parser_signature = Sig(prog='PROG')
3935 Sig('-w', metavar='W' * 25),
3936 Sig('-x', metavar='X' * 25),
3937 Sig('-y', metavar='Y' * 25),
3938 Sig('-z', metavar='Z' * 25),
3939 Sig('a'),
3940 Sig('b'),
3941 Sig('c'),
3971 parser_signature = Sig(prog='PROG')
3973 Sig('-x'),
3974 Sig('-y'),
3975 Sig('-z'),
3976 Sig('a' * 25),
3977 Sig('b' * 25),
3978 Sig('c' * 25),
4005 parser_signature = Sig(prog='PROG')
4007 Sig('-x', metavar='X' * 25),
4008 Sig('-y', metavar='Y' * 25),
4009 Sig('-z', metavar='Z' * 25),
4010 Sig('a' * 25),
4011 Sig('b' * 25),
4012 Sig('c' * 25),
4041 parser_signature = Sig(prog='PROG')
4043 Sig('-x', metavar='X' * 25),
4044 Sig('-y', metavar='Y' * 25),
4045 Sig('-z', metavar='Z' * 25),
4067 parser_signature = Sig(prog='PROG', add_help=False)
4069 Sig('a' * 25),
4070 Sig('b' * 25),
4071 Sig('c' * 25),
4091 parser_signature = Sig(prog='PROG')
4093 Sig('-x', type=int,
4095 Sig('-y', action='store_const', default=42, const='XXX',
4097 Sig('--foo', choices='abc',
4099 Sig('--bar', default='baz', choices=[1, 2], metavar='BBB',
4101 Sig('spam', help='spam %(prog)s %(default)s'),
4102 Sig('badger', default=0.5, help='badger %(prog)s %(default)s'),
4105 (Sig('group'), [
4106 Sig('-a', help='a %(prog)s %(default)s'),
4107 Sig('-b', default=-1, help='b %(prog)s %(default)s'),
4137 parser_signature = Sig(prog='PROG', usage='%(prog)s FOO')
4154 parser_signature = Sig(prog='PROG', add_help=False)
4167 parser_signature = Sig(prog='PROG', usage=argparse.SUPPRESS)
4169 Sig('--foo', help='foo help'),
4170 Sig('spam', help='spam help'),
4188 parser_signature = Sig(prog='PROG', add_help=False)
4190 Sig('--foo', help=argparse.SUPPRESS),
4191 Sig('spam', help='spam help'),
4208 parser_signature = Sig(prog='PROG')
4210 Sig('--foo', help='foo help'),
4211 Sig('spam', help='spam help'),
4214 (Sig('group'), [Sig('--bar', help=argparse.SUPPRESS)]),
4234 parser_signature = Sig(prog='PROG')
4236 Sig('--foo', help='foo help'),
4237 Sig('spam', help=argparse.SUPPRESS),
4255 parser_signature = Sig(prog='PROG')
4257 Sig('--foo', required=True, help='foo help'),
4275 parser_signature = Sig(prog='PROG', prefix_chars='^;', add_help=False)
4277 Sig('^^foo', action='store_true', help='foo help'),
4278 Sig(';b', ';;bar', help='bar help'),
4296 parser_signature = Sig(prog='PROG', add_help=False)
4298 Sig('--foo', help='foo help'),
4299 Sig('spam', help='spam help'),
4319 parser_signature = Sig(prog='PROG')
4321 Sig('--foo'),
4322 Sig('spam'),
4343 parser_signature = Sig(prog='PROG')
4345 Sig('-w', help='w', nargs='+', metavar=('W1', 'W2')),
4346 Sig('-x', help='x', nargs='*', metavar=('X1', 'X2')),
4347 Sig('-y', help='y', nargs=3, metavar=('Y1', 'Y2', 'Y3')),
4348 Sig('-z', help='z', nargs='?', metavar=('Z1', )),
4370 parser_signature = Sig(
4378 Sig('--foo', help=' foo help should also\n'
4380 Sig('spam', help='spam help'),
4383 (Sig('title', description=' This text\n'
4386 [Sig('--bar', help='bar help')]),
4419 parser_signature = Sig(
4427 Sig('--foo', help=' foo help should not\n'
4429 Sig('spam', help='spam help'),
4432 (Sig('title', description=' This text\n'
4435 [Sig('--bar', help='bar help')]),
4467 parser_signature = Sig(
4472 Sig('--foo', help='foo help - oh and by the way, %(default)s'),
4473 Sig('--bar', action='store_true', help='bar help'),
4474 Sig('--taz', action=argparse.BooleanOptionalAction,
4476 Sig('--corge', action=argparse.BooleanOptionalAction,
4478 Sig('--quux', help="Set the quux", default=42),
4479 Sig('spam', help='spam help'),
4480 Sig('badger', nargs='?', default='wooden', help='badger help'),
4483 (Sig('title', description='description'),
4484 [Sig('--baz', type=int, default=42, help='baz help')]),
4517 parser_signature = Sig(prog='PROG', description='description')
4518 argument_signatures = [Sig('-V', '--version', action='version', version='3.6')]
4537 parser_signature = Sig(prog='PROG')
4539 Sig('-v', '--version', action='version', version='1.0',
4541 Sig('--foo', help='foo help'),
4542 Sig('spam', help='spam help'),
4561 parser_signature = Sig(prog='PROG',
4563 argument_signatures = [Sig('-v', '--version', action='version', version='0.1')]
4565 subparsers_signatures = [Sig(name=name)
4590 parser_signature = Sig(prog='PROG',
4592 argument_signatures = [Sig('-v', '--version', action='version', version='0.1')]
4601 subparsers_signatures = [Sig(name=name, help=help)
4636 parser_signature = Sig(prog='PROG', description='description',
4638 argument_signatures = [Sig('a', type=int),
4639 Sig('-b', type=custom_type),
4640 Sig('-c', type=float, metavar='SOME FLOAT')]