3 ms·
It 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. Wh
by mjevans 1y ago
It 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...