This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.smith
Recipients eric.smith, nabelekt, paul.j3, rhettinger
Date 2020-12-18.22:43:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1608331424.52.0.754573666269.issue42677@roundup.psfhosted.org>
In-reply-to
Content
I think you could achieve this by overriding convert_arg_line_to_args.

If this were baked in to argparse, there would need to be an argument to argparse.ArgumentParser to turn on this behavior, with the default being to not support comments. That's because enabling this by default would be a non backward compatible change.

Personally, I think argparse.ArgumentParser is already too complex, and this shouldn't be added.
History
Date User Action Args
2020-12-18 22:43:44eric.smithsetrecipients: + eric.smith, rhettinger, paul.j3, nabelekt
2020-12-18 22:43:44eric.smithsetmessageid: <1608331424.52.0.754573666269.issue42677@roundup.psfhosted.org>
2020-12-18 22:43:44eric.smithlinkissue42677 messages
2020-12-18 22:43:44eric.smithcreate