Author mhughes
Recipients mhughes
Date 2020-07-09.08:40:33
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
>>> import argparse
    >>> parser = argparse.ArgumentParser(exit_on_error=False)
    >>> parser.parse_args(["--unknown"])
    usage: [-h]
    : error: unrecognized arguments: --unknown

The docs say:

> Normally, when you pass an invalid argument list to the parse_args() method of an ArgumentParser, it will exit with error info.
> If the user would like catch errors manually, the feature can be enable by setting exit_on_error to False:

This description _appears_ to be at odds with the observed behavior.
Date User Action Args
2020-07-09 08:40:33mhughessetrecipients: + mhughes
2020-07-09 08:40:33mhughessetmessageid: <>
2020-07-09 08:40:33mhugheslinkissue41255 messages
2020-07-09 08:40:33mhughescreate