[issue42677] Support comments in argparse fromfile_prefix_chars files

paul j3 report at bugs.python.org
Fri Dec 18 21:04:37 EST 2020


paul j3 <ajipanca at gmail.com> added the comment:

https://docs.python.org/3/library/argparse.html#customizing-file-parsing

in the docs describes how to customize the @file reading.  This particular extension handles several strings on a line, but that's not the limit of what you could do.

You can also read a file before parsing and construct a custom `argv` list, as described in https://docs.python.org/3/library/argparse.html#beyond-sys-argv

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42677>
_______________________________________


More information about the Python-bugs-list mailing list