Home
last modified time | relevance | path

Searched refs:BooleanOptionalAction (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_argparse.py693 argument_signatures = [Sig('--foo', action=argparse.BooleanOptionalAction)]
707 parser.add_argument('--foo', const=True, action=argparse.BooleanOptionalAction)
715 Sig('--foo', required=True, action=argparse.BooleanOptionalAction)
3529 Sig('--foo', help='Whether to foo', action=argparse.BooleanOptionalAction),
3531 action=argparse.BooleanOptionalAction),
3532 Sig('-f', '--foobar', '--barfoo', action=argparse.BooleanOptionalAction),
/external/python/cpython3/Lib/
Dargparse.py856 class BooleanOptionalAction(Action): class
/external/python/cpython3/Doc/library/
Dargparse.rst846 other object that implements the same interface. The ``BooleanOptionalAction``
852 >>> parser.add_argument('--foo', action=argparse.BooleanOptionalAction)