3 ms·
I think this is doable but as an X vs Y problem. You can either not have a default and check if it's in the namespace later, or make the default value be the pr
by Neywiny 1y ago
I think this is doable but as an X vs Y problem. You can either not have a default and check if it's in the namespace later, or make the default value be the previously highest priority value as a run-time defined default. Do either of those work?
- mjevans 1y agoIt would be nice if --help reports the (program) default as the default value for an option. A different option might dump a fully evaluated configuration. While a third might exit without doing anything.
- Elixir6419 1y agoif you pass formatter_class=argparse.ArgumentDefaultsHelpFormatter) you will get exactly that. shameless copy from https://stackoverflow.com/questions/12151306/argparse-way-to-include-default-values-in-help https://stackoverflow.com/questions/12151306/argparse-way-to...