• Home
  • Raw
  • Download

Lines Matching refs:PROG

264    >>> parser = argparse.ArgumentParser(prog='PROG')
268 usage: PROG [-h] [--foo [FOO]] bar [bar ...]
279 >>> parser = argparse.ArgumentParser(prog='PROG', usage='%(prog)s [options]')
283 usage: PROG [options]
394 ... prog='PROG',
403 usage: PROG [-h]
418 ... prog='PROG',
428 usage: PROG [-h]
448 ... prog='PROG',
453 usage: PROG [-h] [--foo FOO] [bar ...]
467 ... prog='PROG',
472 usage: PROG [-h] [--foo int] float
491 >>> parser = argparse.ArgumentParser(prog='PROG', prefix_chars='-+')
560 >>> parser = argparse.ArgumentParser(prog='PROG', allow_abbrev=False)
564 usage: PROG [-h] [--foobar] [--foonley]
565 PROG: error: unrecognized arguments: --foon
578 >>> parser = argparse.ArgumentParser(prog='PROG')
590 >>> parser = argparse.ArgumentParser(prog='PROG', conflict_handler='resolve')
594 usage: PROG [-h] [-f FOO] [--foo FOO]
635 >>> parser = argparse.ArgumentParser(prog='PROG', add_help=False)
638 usage: PROG [--foo FOO]
649 >>> parser = argparse.ArgumentParser(prog='PROG', prefix_chars='+/')
651 usage: PROG [+h]
739 >>> parser = argparse.ArgumentParser(prog='PROG')
747 usage: PROG [-h] [-f FOO] bar
748 PROG: error: the following arguments are required: bar
830 >>> parser = argparse.ArgumentParser(prog='PROG')
833 PROG 2.0
959 >>> parser = argparse.ArgumentParser(prog='PROG')
964 usage: PROG [-h] foo [foo ...]
965 PROG: error: the following arguments are required: foo
1297 >>> parser = argparse.ArgumentParser(prog='PROG')
1301 usage: PROG [-h] [-x X X] [--foo bar baz]
1421 >>> parser = argparse.ArgumentParser(prog='PROG')
1445 >>> parser = argparse.ArgumentParser(prog='PROG')
1461 >>> parser = argparse.ArgumentParser(prog='PROG')
1467 usage: PROG [-h] [--foo FOO] [bar]
1468 PROG: error: argument --foo: invalid int value: 'spam'
1472 usage: PROG [-h] [--foo FOO] [bar]
1473 PROG: error: no such option: --bar
1477 usage: PROG [-h] [--foo FOO] [bar]
1478 PROG: error: extra arguments found: badger
1492 >>> parser = argparse.ArgumentParser(prog='PROG')
1504 >>> parser = argparse.ArgumentParser(prog='PROG')
1514 usage: PROG [-h] [-1 ONE] [foo]
1515 PROG: error: no such option: -2
1519 usage: PROG [-h] [-1 ONE] [foo]
1520 PROG: error: argument -1: expected one argument
1539 >>> parser = argparse.ArgumentParser(prog='PROG')
1547 usage: PROG [-h] [-bacon BACON] [-badger BADGER]
1548 PROG: error: ambiguous option: -ba could match -badger, -bacon
1666 >>> parser = argparse.ArgumentParser(prog='PROG')
1700 usage: PROG [-h] [--foo] {a,b} ...
1712 usage: PROG a [-h] bar
1721 usage: PROG b [-h] [--baz {X,Y,Z}]
1857 >>> parser = argparse.ArgumentParser(prog='PROG', add_help=False)
1862 usage: PROG [--foo FOO] bar
1876 >>> parser = argparse.ArgumentParser(prog='PROG', add_help=False)
1882 usage: PROG [--bar BAR] foo
1907 >>> parser = argparse.ArgumentParser(prog='PROG')
1916 usage: PROG [-h] [--foo | --bar]
1917 PROG: error: argument --bar: not allowed with argument --foo
1923 >>> parser = argparse.ArgumentParser(prog='PROG')
1928 usage: PROG [-h] (--foo | --bar)
1929 PROG: error: one of the arguments --foo --bar is required