[docs] [issue9938] Documentation for argparse interactive use
report at bugs.python.org
Mon May 16 14:00:22 CEST 2011
Ezio Melotti <ezio.melotti at gmail.com> added the comment:
FWIW unittest had a similar issue and it's been solved adding an 'exit' argument to unittest.main() .
I think using an attribute here might be fine.
The patch contains some trailing whitespace that should be removed, also it might be enough to name the attribute "exit_on_error".
It should also include tests to check that the attribute is set with the correct default value and that it doesn't raise SystemExit when the attribute is False.
versions: +Python 3.3
Python tracker <report at bugs.python.org>
More information about the docs