Re:Python argparse has a limitation on argument groups that ...
by mjevans on Saturday June 14, 2025 @04:53PM
(#44278759)
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.
[ Parent
| on HN ]
Re:Python argparse has a limitation on argument groups that ...
by Elixir6419 on Thursday June 19, 2025 @07:13AM
(#44317522)
if you pass formatter_class=argparse.ArgumentDefaultsHelpFormatter) you will get exactly that.
shameless copy from https://stackoverflow.com/questions/12151306/argparse-way-to...