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

How can additional help message be removed? #221

Closed ayush4921 closed 3 years ago

ayush4921 commented 3 years ago

How can this messaged be removed from help:

Args that start with '--' (eg. -v) can also be set in a config file (specified
via --config). Uses configparser module to parse an INI file which allows
multi-line         values.          Allowed syntax is that for a ConfigParser
with the following options:              allow_no_value = False,
inline_comment_prefixes = ("#",)             strict = True
empty_lines_in_values = False          See
https://docs.python.org/3/library/configparser.html for details.
Note: INI file sections names are still treated as comments.          If an
arg is specified in more than one place, then commandline values override
config file values which override defaults.
bw2 commented 3 years ago

Try setting https://github.com/bw2/ConfigArgParse/blob/master/configargparse.py#L348 to False