Eric V. Smith <e...@trueblade.com> added the comment:

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.

----------
nosy: +eric.smith, paul.j3, rhettinger

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue42677>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to