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 Thermi
Recipients Thermi
Date 2021-07-27.09:26:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1627377992.52.0.310829281762.issue44748@roundup.psfhosted.org>
In-reply-to
Content
It'd be great if as part of the namespace returned by argparse.ArgumentParser.parse_args(), there was a bool indicating if a specific argument was encountered.

That could then be used to implement the following behaviour:
With a config file loaded as part of the program, overwrite the values loaded from the config file if the argument was encountered in the argument vector.

That's necessary to implement overwriting of settings that were previously set by a different mechanism, e.g. read from a config file.

After all the following order of significance should be used:
program defaults < config file < argument vector
History
Date User Action Args
2021-07-27 09:26:32Thermisetrecipients: + Thermi
2021-07-27 09:26:32Thermisetmessageid: <1627377992.52.0.310829281762.issue44748@roundup.psfhosted.org>
2021-07-27 09:26:32Thermilinkissue44748 messages
2021-07-27 09:26:32Thermicreate