Skip to content

Commit ce77c7a

Browse files
committed
Improve formulation in documentation
1 parent 77b5e59 commit ce77c7a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Doc/library/argparse.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -613,8 +613,7 @@ when the choices specified are strings::
613613
>>> parser.parse_args(['--action', 'sumn', 1, 2, 3])
614614
tester.py: error: argument --action: invalid choice: 'sumn', maybe you meant 'sum'? (choose from 'sum', 'max')
615615

616-
If you prefer the old behavior without suggestions, you can disable this feature
617-
by setting ``suggest_on_error`` to ``False``::
616+
You can disable suggestions by setting ``suggest_on_error`` to ``False``::
618617

619618
>>> parser = argparse.ArgumentParser(description='Process some integers.',
620619
suggest_on_error=False)

0 commit comments

Comments
 (0)