paul j3 added the comment:
Duplicate of https://bugs.python.org/issue41255
Argparse.parse_args exits on unrecognized option with exit_on_error=False
--
nosy: +paul.j3
resolution: -> duplicate
stage: patch review -> resolved
status: open -> closed
Change by Jacob Walls :
--
keywords: +patch
nosy: +jacobtylerwalls
nosy_count: 1.0 -> 2.0
pull_requests: +29018
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30832
___
Python tracker
New submission from Daniel Schulte :
When calling ArgumentParser.parse_args(list_of_things_to_parse) sys.exit gets
called even though the parser was constructed with exit_on_error=False. It
doesn't matter if the parser has any subparsers added or not.
The docs say
> Normally, when you pass