• Home
  • Raw
  • Download

Lines Matching refs:Sig

61 class Sig(object):  class
166 cls.parser_signature = Sig()
267 argument_signatures = [Sig('-x')]
282 Sig('-x', action='store_true'),
283 Sig('-yyy', action='store_const', const=42),
284 Sig('-z'),
307 argument_signatures = [Sig('-foo')]
321 argument_signatures = [Sig('-f'), Sig('-foobar'), Sig('-foorab')]
337 argument_signatures = [Sig('-foobar'), Sig('-foorab')]
353 argument_signatures = [Sig('-1', dest='one')]
366 argument_signatures = [Sig('--foo')]
381 Sig('--badger', action='store_true'),
382 Sig('--bat'),
399 Sig('--badger', action='store_true'),
400 Sig('--ba'),
418 Sig('-f', action='store_true'),
419 Sig('--bar'),
420 Sig('-baz', action='store_const', const=42),
436 parser_signature = Sig(prefix_chars='+:/', add_help=False)
438 Sig('+f', action='store_true'),
439 Sig('::bar'),
440 Sig('/baz', action='store_const', const=42),
458 parser_signature = Sig(prefix_chars='+:/', add_help=True)
460 Sig('+f', action='store_true'),
461 Sig('::bar'),
462 Sig('/baz', action='store_const', const=42),
478 parser_signature = Sig(prefix_chars='+-', add_help=False)
480 Sig('-x', action='store_true'),
481 Sig('+y', action='store_true'),
482 Sig('+z', action='store_true'),
502 Sig('-v', '--verbose', '-n', '--noisy', action='store_true'),
517 argument_signatures = [Sig('--foo-bar'), Sig('--baz', dest='zabbaz')]
530 argument_signatures = [Sig('-x'), Sig('-y', default=42)]
542 argument_signatures = [Sig('-x')]
553 argument_signatures = [Sig('-x', nargs=1)]
564 argument_signatures = [Sig('-x', nargs=3)]
576 Sig('-w', nargs='?'),
577 Sig('-x', nargs='?', const=42),
578 Sig('-y', nargs='?', default='spam'),
579 Sig('-z', nargs='?', type=int, const='42', default='84'),
599 Sig('-x', nargs='*'),
600 Sig('-y', nargs='*', default='spam'),
618 Sig('-x', nargs='+'),
619 Sig('-y', nargs='+', default='spam'),
635 Sig('-f', choices='abc'),
636 Sig('-g', type=int, choices=range(5))]
652 Sig('-x', type=int, required=True),
664 argument_signatures = [Sig('-x', action='store')]
675 argument_signatures = [Sig('-y', action='store_const', const=object)]
686 argument_signatures = [Sig('-z', action='store_false')]
697 argument_signatures = [Sig('--apple', action='store_true')]
708 argument_signatures = [Sig('--baz', action='append')]
720 argument_signatures = [Sig('--baz', action='append', default=['X'])]
733 Sig('-b', action='append_const', const=Exception),
734 Sig('-c', action='append', dest='b'),
748 Sig('-b', action='append_const', const=Exception, default=['X']),
749 Sig('-c', action='append', dest='b'),
762 argument_signatures = [Sig('-x', action='count')]
777 argument_signatures = [Sig('foo')]
787 argument_signatures = [Sig('foo', nargs=1)]
797 argument_signatures = [Sig('foo', nargs=2)]
807 argument_signatures = [Sig('foo', nargs='*')]
819 argument_signatures = [Sig('foo', nargs='*', default='bar')]
831 argument_signatures = [Sig('foo', nargs='+')]
842 argument_signatures = [Sig('foo', nargs='?')]
853 argument_signatures = [Sig('foo', nargs='?', default=42)]
867 Sig('foo', nargs='?', type=int, default='42'),
879 argument_signatures = [Sig('foo'), Sig('bar')]
889 argument_signatures = [Sig('foo'), Sig('bar', nargs=1)]
899 argument_signatures = [Sig('foo', nargs=2), Sig('bar')]
909 argument_signatures = [Sig('foo'), Sig('bar', nargs='*')]
921 argument_signatures = [Sig('foo'), Sig('bar', nargs='+')]
932 argument_signatures = [Sig('foo'), Sig('bar', nargs='?')]
943 argument_signatures = [Sig('foo', nargs='*'), Sig('bar')]
955 argument_signatures = [Sig('foo', nargs='+'), Sig('bar')]
966 argument_signatures = [Sig('foo', nargs='?', default=42), Sig('bar')]
977 argument_signatures = [Sig('foo', nargs=2), Sig('bar', nargs='*')]
988 argument_signatures = [Sig('foo', nargs=2), Sig('bar', nargs='+')]
998 argument_signatures = [Sig('foo', nargs=2), Sig('bar', nargs='?')]
1009 argument_signatures = [Sig('foo', nargs='*'), Sig('bar', nargs=1)]
1021 argument_signatures = [Sig('foo', nargs='+'), Sig('bar', nargs=1)]
1032 argument_signatures = [Sig('foo', nargs='?'), Sig('bar', nargs=1)]
1044 Sig('foo'),
1045 Sig('bar', nargs='*'),
1046 Sig('baz', nargs=1),
1059 Sig('foo'),
1060 Sig('bar', nargs='+'),
1061 Sig('baz', nargs=1),
1074 Sig('foo'),
1075 Sig('bar', nargs='?', default=0.625),
1076 Sig('baz', nargs=1),
1089 Sig('foo', nargs='?'),
1090 Sig('bar', nargs='?', default=42),
1103 argument_signatures = [Sig('foo', nargs='?'), Sig('bar', nargs='*')]
1116 argument_signatures = [Sig('foo', nargs='?'), Sig('bar', nargs='+')]
1128 argument_signatures = [Sig('spam', choices=set('abcdefg'))]
1139 argument_signatures = [Sig('spam', type=int, choices=range(20))]
1151 Sig('spam', action='append'),
1152 Sig('spam', action='append', nargs=2),
1167 Sig('x', nargs='?'),
1168 Sig('-4', dest='y', action='store_true'),
1183 Sig('x', nargs='?'),
1184 Sig('-k4', dest='y', action='store_true'),
1199 Sig('x', nargs='?'),
1200 Sig('-y', '--yyy', dest='y'),
1217 parser_signature = Sig(prefix_chars='-+')
1219 Sig('-', dest='x', nargs='?', const='badger'),
1220 Sig('+', dest='y', type=int, default=42),
1221 Sig('-+-', dest='z', action='store_true'),
1237 argument_signatures = [Sig('-x', nargs='*'), Sig('y', nargs='*')]
1253 argument_signatures = [Sig('x'), Sig('y', nargs='...'), Sig('-z')]
1267 Sig('-x', type=float),
1268 Sig('-3', type=float, dest='y'),
1269 Sig('z', nargs='*'),
1294 Sig('foo', nargs='?', default=argparse.SUPPRESS),
1295 Sig('bar', nargs='*', default=argparse.SUPPRESS),
1296 Sig('--baz', action='store_true', default=argparse.SUPPRESS),
1312 parser_signature = Sig(argument_default=argparse.SUPPRESS)
1314 Sig('foo', nargs='?'),
1315 Sig('bar', nargs='*'),
1316 Sig('--baz', action='store_true'),
1332 parser_signature = Sig(argument_default=42, version='1.0')
1334 Sig('foo', nargs='?'),
1335 Sig('bar', nargs='*'),
1336 Sig('--baz', action='store_true'),
1366 parser_signature = Sig(fromfile_prefix_chars='@')
1368 Sig('-a'),
1369 Sig('x'),
1370 Sig('y', nargs='+'),
1405 parser_signature = Sig(fromfile_prefix_chars='@')
1407 Sig('y', nargs='+'),
1461 Sig('-x', type=argparse.FileType()),
1462 Sig('spam', type=argparse.FileType('r')),
1482 Sig('-c', type=argparse.FileType('r'), default='no-file.txt'),
1501 Sig('-x', type=argparse.FileType('rb')),
1502 Sig('spam', type=argparse.FileType('rb')),
1542 Sig('-x', type=argparse.FileType('w')),
1543 Sig('spam', type=argparse.FileType('w')),
1558 Sig('-x', type=argparse.FileType('wb')),
1559 Sig('spam', type=argparse.FileType('wb')),
1574 Sig('--eggs', type=complex),
1575 Sig('spam', type=float),
1599 Sig('-x', type=MyType),
1600 Sig('spam', type=MyType),
1623 Sig('-x', type=C),
1624 Sig('spam', type=C),
1709 Sig('-s', dest='spam', action=OptionalAction,
1711 Sig('badger', action=PositionalAction,
2917 parser_signature = Sig(prog='PROG', description='DESCRIPTION',
2920 Sig('-x', action='store_true', help='X HELP'),
2921 Sig('--y', help='Y HELP'),
2922 Sig('foo', help='FOO HELP'),
2923 Sig('bar', help='BAR HELP'),
3007 parser_signature = Sig(prog='PROG', description='DESCRIPTION',
3010 Sig('-x', action='store_true', help='X HELP'),
3011 Sig('--y', help='Y HELP'),
3012 Sig('foo', help='FOO HELP'),
3013 Sig('bar', help='BAR HELP'),
3016 (Sig('GROUP TITLE', description='GROUP DESCRIPTION'), [
3017 Sig('baz', help='BAZ HELP'),
3018 Sig('-z', nargs='+', help='Z HELP')]),
3053 parser_signature = Sig(usage='USAGE', description='DESCRIPTION')
3055 Sig('-x', action='store_true', help='X HELP'),
3056 Sig('--y', help='Y HELP'),
3057 Sig('ekiekiekifekang', help='EKI HELP'),
3058 Sig('bar', help='BAR HELP'),
3084 parser_signature = Sig(
3092 Sig('-x', metavar='XX', help='oddly\n'
3094 Sig('y', metavar='yyy', help='normal y help'),
3097 (Sig('title', description='\n'
3101 [Sig('-a', action='store_true',
3136 parser_signature = Sig(prog='PROG', description= 'D\nD' * 30)
3138 Sig('-x', metavar='XX', help='XHH HX' * 20),
3139 Sig('y', metavar='yyy', help='YH YH' * 20),
3142 (Sig('ALPHAS'), [
3143 Sig('-a', action='store_true', help='AHHH HHA' * 10)]),
3176 parser_signature = Sig(usage='USAGE', description= 'D D' * 30,
3179 Sig('-x', metavar='X' * 25, help='XH XH' * 20),
3180 Sig('y', metavar='y' * 25, help='YH YH' * 20),
3183 (Sig('ALPHAS'), [
3184 Sig('-a', metavar='A' * 25, help='AH AH' * 20),
3185 Sig('z', metavar='z' * 25, help='ZH ZH' * 20)]),
3230 parser_signature = Sig(prog='PROG')
3232 Sig('-w', nargs='+', help='w'),
3233 Sig('-x', nargs='*', help='x'),
3234 Sig('a', help='a'),
3235 Sig('b', help='b', nargs=2),
3236 Sig('c', help='c', nargs='?'),
3239 (Sig('group'), [
3240 Sig('-y', nargs='?', help='y'),
3241 Sig('-z', nargs=3, help='z'),
3242 Sig('d', help='d', nargs='*'),
3243 Sig('e', help='e', nargs='+'),
3274 parser_signature = Sig(prog='PROG', add_help=False)
3277 (Sig('xxxx'), [
3278 Sig('-x', help='x'),
3279 Sig('a', help='a'),
3281 (Sig('yyyy'), [
3282 Sig('b', help='b'),
3283 Sig('-y', help='y'),
3305 parser_signature = Sig(prog='P' * 60)
3307 Sig('-w', metavar='W'),
3308 Sig('-x', metavar='X'),
3309 Sig('a'),
3310 Sig('b'),
3334 parser_signature = Sig(prog='P' * 60)
3336 Sig('-w', metavar='W' * 25),
3337 Sig('-x', metavar='X' * 25),
3338 Sig('-y', metavar='Y' * 25),
3339 Sig('-z', metavar='Z' * 25),
3340 Sig('a'),
3341 Sig('b'),
3370 parser_signature = Sig(prog='P' * 60, add_help=False)
3372 Sig('a' * 25),
3373 Sig('b' * 25),
3374 Sig('c' * 25),
3395 parser_signature = Sig(prog='PROG')
3397 Sig('-w', metavar='W' * 25),
3398 Sig('-x', metavar='X' * 25),
3399 Sig('-y', metavar='Y' * 25),
3400 Sig('-z', metavar='Z' * 25),
3401 Sig('a'),
3402 Sig('b'),
3403 Sig('c'),
3433 parser_signature = Sig(prog='PROG')
3435 Sig('-x'),
3436 Sig('-y'),
3437 Sig('-z'),
3438 Sig('a' * 25),
3439 Sig('b' * 25),
3440 Sig('c' * 25),
3467 parser_signature = Sig(prog='PROG')
3469 Sig('-x', metavar='X' * 25),
3470 Sig('-y', metavar='Y' * 25),
3471 Sig('-z', metavar='Z' * 25),
3472 Sig('a' * 25),
3473 Sig('b' * 25),
3474 Sig('c' * 25),
3503 parser_signature = Sig(prog='PROG')
3505 Sig('-x', metavar='X' * 25),
3506 Sig('-y', metavar='Y' * 25),
3507 Sig('-z', metavar='Z' * 25),
3529 parser_signature = Sig(prog='PROG', add_help=False)
3531 Sig('a' * 25),
3532 Sig('b' * 25),
3533 Sig('c' * 25),
3553 parser_signature = Sig(prog='PROG')
3555 Sig('-x', type=int,
3557 Sig('-y', action='store_const', default=42, const='XXX',
3559 Sig('--foo', choices='abc',
3561 Sig('--bar', default='baz', choices=[1, 2], metavar='BBB',
3563 Sig('spam', help='spam %(prog)s %(default)s'),
3564 Sig('badger', default=0.5, help='badger %(prog)s %(default)s'),
3567 (Sig('group'), [
3568 Sig('-a', help='a %(prog)s %(default)s'),
3569 Sig('-b', default=-1, help='b %(prog)s %(default)s'),
3599 parser_signature = Sig(prog='PROG', usage='%(prog)s FOO')
3616 parser_signature = Sig(prog='PROG', add_help=False)
3629 parser_signature = Sig(prog='PROG', usage=argparse.SUPPRESS)
3631 Sig('--foo', help='foo help'),
3632 Sig('spam', help='spam help'),
3650 parser_signature = Sig(prog='PROG', add_help=False)
3652 Sig('--foo', help=argparse.SUPPRESS),
3653 Sig('spam', help='spam help'),
3670 parser_signature = Sig(prog='PROG')
3672 Sig('--foo', help='foo help'),
3673 Sig('spam', help='spam help'),
3676 (Sig('group'), [Sig('--bar', help=argparse.SUPPRESS)]),
3696 parser_signature = Sig(prog='PROG')
3698 Sig('--foo', help='foo help'),
3699 Sig('spam', help=argparse.SUPPRESS),
3717 parser_signature = Sig(prog='PROG')
3719 Sig('--foo', required=True, help='foo help'),
3737 parser_signature = Sig(prog='PROG', prefix_chars='^;', add_help=False)
3739 Sig('^^foo', action='store_true', help='foo help'),
3740 Sig(';b', ';;bar', help='bar help'),
3758 parser_signature = Sig(prog='PROG', add_help=False)
3760 Sig('--foo', help='foo help'),
3761 Sig('spam', help='spam help'),
3781 parser_signature = Sig(prog='PROG', version='1.0')
3783 Sig('--foo', help='foo help'),
3784 Sig('spam', help='spam help'),
3808 parser_signature = Sig(prog='PROG')
3810 Sig('--foo'),
3811 Sig('spam'),
3832 parser_signature = Sig(prog='PROG')
3834 Sig('-w', help='w', nargs='+', metavar=('W1', 'W2')),
3835 Sig('-x', help='x', nargs='*', metavar=('X1', 'X2')),
3836 Sig('-y', help='y', nargs=3, metavar=('Y1', 'Y2', 'Y3')),
3837 Sig('-z', help='z', nargs='?', metavar=('Z1', )),
3859 parser_signature = Sig(
3867 Sig('--foo', help=' foo help should also\n'
3869 Sig('spam', help='spam help'),
3872 (Sig('title', description=' This text\n'
3875 [Sig('--bar', help='bar help')]),
3908 parser_signature = Sig(
3916 Sig('--foo', help=' foo help should not\n'
3918 Sig('spam', help='spam help'),
3921 (Sig('title', description=' This text\n'
3924 [Sig('--bar', help='bar help')]),
3956 parser_signature = Sig(
3961 Sig('--foo', help='foo help - oh and by the way, %(default)s'),
3962 Sig('--bar', action='store_true', help='bar help'),
3963 Sig('spam', help='spam help'),
3964 Sig('badger', nargs='?', default='wooden', help='badger help'),
3967 (Sig('title', description='description'),
3968 [Sig('--baz', type=int, default=42, help='baz help')]),
3996 parser_signature = Sig(prog='PROG', description='description')
3997 argument_signatures = [Sig('-V', '--version', action='version', version='3.6')]
4014 parser_signature = Sig(prog='PROG',
4018 subparsers_signatures = [Sig(name=name)
4043 parser_signature = Sig(prog='PROG',
4054 subparsers_signatures = [Sig(name=name, help=help)