bw2 / ConfigArgParse

A drop-in replacement for argparse that allows options to also be set via config files and/or environment variables.
MIT License
722 stars 121 forks source link

Allow setting counters in configfile. #216

Closed macfreek closed 3 years ago

macfreek commented 3 years ago

E.g. for an action=count, called verbose/v you already could set -v -v -v (or -vvv) on the command line.

And you can now also set: verbose=3 in the configuration file.

Added two tests to verify current behaviour. Note that it still is not possible to specify -v=3 on the command line.

Credits to @christensonb for suggesting this fix in #138. Closes #138 Closes #175

bw2 commented 3 years ago

Looks great!