[issue26394] Have argparse provide ability to require a fallback value be present

paul j3 report at bugs.python.org
Thu Mar 10 23:26:54 EST 2016


paul j3 added the comment:

http://stackoverflow.com/a/35144270/901925
dynamically-set-default-value-from-cfg-file-through-argparse-python

is my answer to a similar recent (Feb 2015) SO question.

I rather like the idea of using collections.ChainMap on the dictionary versions of the namespace and config data.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26394>
_______________________________________


More information about the Python-bugs-list mailing list