[docs] [issue31640] Document exit() from parse_args

Charles Merriam report at bugs.python.org
Fri Sep 29 12:54:03 EDT 2017

New submission from Charles Merriam <charles.merriam at gmail.com>:

It is unexpected to testers and users to ArgParse that it terminates the process; one usually expects an error code.  Fix by modifying documentation to section 16.4.4 The parse_args() Method. 

Change the words "Return the populated namespace." to "Return the populated namespace, or exit with a status 0 if the help message is printed, or exit with status 2 if an invalid argument was parsed."

assignee: docs at python
components: Documentation
messages: 303341
nosy: CharlesMerriam, docs at python
priority: normal
severity: normal
status: open
title: Document exit() from parse_args
type: enhancement
versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8

Python tracker <report at bugs.python.org>

More information about the docs mailing list