• Home
  • Raw
  • Download

Lines Matching refs:PROG

253    >>> parser = argparse.ArgumentParser(prog='PROG')
257 usage: PROG [-h] [--foo [FOO]] bar [bar ...]
268 >>> parser = argparse.ArgumentParser(prog='PROG', usage='%(prog)s [options]')
272 usage: PROG [options]
383 ... prog='PROG',
392 usage: PROG [-h]
407 ... prog='PROG',
417 usage: PROG [-h]
437 ... prog='PROG',
442 usage: PROG [-h] [--foo FOO] [bar [bar ...]]
456 ... prog='PROG',
461 usage: PROG [-h] [--foo int] float
480 >>> parser = argparse.ArgumentParser(prog='PROG', prefix_chars='-+')
549 >>> parser = argparse.ArgumentParser(prog='PROG', allow_abbrev=False)
553 usage: PROG [-h] [--foobar] [--foonley]
554 PROG: error: unrecognized arguments: --foon
567 >>> parser = argparse.ArgumentParser(prog='PROG')
579 >>> parser = argparse.ArgumentParser(prog='PROG', conflict_handler='resolve')
583 usage: PROG [-h] [-f FOO] [--foo FOO]
624 >>> parser = argparse.ArgumentParser(prog='PROG', add_help=False)
627 usage: PROG [--foo FOO]
638 >>> parser = argparse.ArgumentParser(prog='PROG', prefix_chars='+/')
640 usage: PROG [+h]
706 >>> parser = argparse.ArgumentParser(prog='PROG')
714 usage: PROG [-h] [-f FOO] bar
715 PROG: error: the following arguments are required: bar
795 >>> parser = argparse.ArgumentParser(prog='PROG')
798 PROG 2.0
901 >>> parser = argparse.ArgumentParser(prog='PROG')
906 usage: PROG [-h] foo [foo ...]
907 PROG: error: the following arguments are required: foo
915 >>> parser = argparse.ArgumentParser(prog='PROG')
1040 >>> parser = argparse.ArgumentParser(prog='PROG')
1045 usage: PROG [-h] foo
1046 PROG: error: argument foo: '7' is not a perfect square
1051 >>> parser = argparse.ArgumentParser(prog='PROG')
1056 usage: PROG [-h] {5,6,7,8,9}
1057 PROG: error: argument foo: invalid choice: 11 (choose from 5, 6, 7, 8, 9)
1230 >>> parser = argparse.ArgumentParser(prog='PROG')
1234 usage: PROG [-h] [-x X X] [--foo bar baz]
1351 >>> parser = argparse.ArgumentParser(prog='PROG')
1375 >>> parser = argparse.ArgumentParser(prog='PROG')
1391 >>> parser = argparse.ArgumentParser(prog='PROG')
1397 usage: PROG [-h] [--foo FOO] [bar]
1398 PROG: error: argument --foo: invalid int value: 'spam'
1402 usage: PROG [-h] [--foo FOO] [bar]
1403 PROG: error: no such option: --bar
1407 usage: PROG [-h] [--foo FOO] [bar]
1408 PROG: error: extra arguments found: badger
1422 >>> parser = argparse.ArgumentParser(prog='PROG')
1434 >>> parser = argparse.ArgumentParser(prog='PROG')
1444 usage: PROG [-h] [-1 ONE] [foo]
1445 PROG: error: no such option: -2
1449 usage: PROG [-h] [-1 ONE] [foo]
1450 PROG: error: argument -1: expected one argument
1469 >>> parser = argparse.ArgumentParser(prog='PROG')
1477 usage: PROG [-h] [-bacon BACON] [-badger BADGER]
1478 PROG: error: ambiguous option: -ba could match -badger, -bacon
1596 >>> parser = argparse.ArgumentParser(prog='PROG')
1630 usage: PROG [-h] [--foo] {a,b} ...
1642 usage: PROG a [-h] bar
1651 usage: PROG b [-h] [--baz {X,Y,Z}]
1784 >>> parser = argparse.ArgumentParser(prog='PROG', add_help=False)
1789 usage: PROG [--foo FOO] bar
1803 >>> parser = argparse.ArgumentParser(prog='PROG', add_help=False)
1809 usage: PROG [--bar BAR] foo
1834 >>> parser = argparse.ArgumentParser(prog='PROG')
1843 usage: PROG [-h] [--foo | --bar]
1844 PROG: error: argument --bar: not allowed with argument --foo
1850 >>> parser = argparse.ArgumentParser(prog='PROG')
1855 usage: PROG [-h] (--foo | --bar)
1856 PROG: error: one of the arguments --foo --bar is required