We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb42ddb commit 71b9a1eCopy full SHA for 71b9a1e
Doc/library/argparse.rst
@@ -608,7 +608,8 @@ when the choices specified are strings::
608
>>> parser = argparse.ArgumentParser(suggest_on_error=True)
609
>>> parser.add_argument('--action', choices=['debug', 'dryrun'])
610
>>> parser.parse_args(['--action', 'debugg'])
611
- error: argument --action: invalid choice: 'debugg', maybe you meant 'debug'? (choose from 'debug', 'dryrun')
+ usage: tester.py [-h] [--action {debug,dryrun}]
612
+ tester.py: error: argument --action: invalid choice: 'debugg', maybe you meant 'debug'? (choose from debug, dryrun)
613
614
You can disable suggestions by setting ``suggest_on_error`` to ``False``.
615
0 commit comments