Skip to content

Commit 71b9a1e

Browse files
Update return
1 parent eb42ddb commit 71b9a1e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/library/argparse.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,8 @@ when the choices specified are strings::
608608
>>> parser = argparse.ArgumentParser(suggest_on_error=True)
609609
>>> parser.add_argument('--action', choices=['debug', 'dryrun'])
610610
>>> parser.parse_args(['--action', 'debugg'])
611-
error: argument --action: invalid choice: 'debugg', maybe you meant 'debug'? (choose from 'debug', 'dryrun')
611+
usage: tester.py [-h] [--action {debug,dryrun}]
612+
tester.py: error: argument --action: invalid choice: 'debugg', maybe you meant 'debug'? (choose from debug, dryrun)
612613

613614
You can disable suggestions by setting ``suggest_on_error`` to ``False``.
614615

0 commit comments

Comments
 (0)