New submission from Charles Merriam <charles.merr...@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@python components: Documentation messages: 303341 nosy: CharlesMerriam, docs@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 <rep...@bugs.python.org> <https://bugs.python.org/issue31640> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com