Author paul.j3
Recipients CharlesMerriam, docs@python, paul.j3, r.david.murray
Date 2017-10-12.19:19:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
And the actual exit is via `parse.error` and `parse.exit`, which are documented in

When run interactively in Ipython, exits (including the help) are captured and displayed with:

In [896]: parser.parse_args()
usage: ipython3 [-h] [--one | --two | --six]
ipython3: error: unrecognized arguments: --pylab --nosep --term-title --InteractiveShellApp.pylab_import_all=False
An exception has occurred, use %tb to see the full traceback.

SystemExit: 2

The exit makes unittesting a challenge.  '' resolves this by using a subclassed parser, one that changes the error/exit, and also redirects output.
Date User Action Args
2017-10-12 19:19:21paul.j3setrecipients: + paul.j3, CharlesMerriam, r.david.murray, docs@python
2017-10-12 19:19:21paul.j3setmessageid: <>
2017-10-12 19:19:21paul.j3linkissue31640 messages
2017-10-12 19:19:21paul.j3create