mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
parent
9bd8af788d
commit
e7e497bdca
1 changed files with 1 additions and 1 deletions
|
@ -538,7 +538,7 @@ This feature can be disabled by setting ``allow_abbrev`` to ``False``::
|
|||
>>> parser = argparse.ArgumentParser(prog='PROG', allow_abbrev=False)
|
||||
>>> parser.add_argument('--foobar', action='store_true')
|
||||
>>> parser.add_argument('--foonley', action='store_false')
|
||||
>>> parser.parse_args([--foon])
|
||||
>>> parser.parse_args(['--foon'])
|
||||
usage: PROG [-h] [--foobar] [--foonley]
|
||||
PROG: error: unrecognized arguments: --foon
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue