bw2 / ConfigArgParse

A drop-in replacement for argparse that allows options to also be set via config files and/or environment variables.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Accessing parameters from config file which have not been defined as options?

tardigradus opened this issue · comments

I have some options which will be used regularly and others which will only be changed very rarely. I would like the common options to appear in the help, but not the others (or the others should at least appear in a separate section).

Ideally I would like to access the parameters from the config file, regardless of whether they have been defined as options. Is this possible?

Yes, you should be able to use add_argument_group for this.

So that will allow some options to be displayed in a separate section in the help, but I would still have to add all the parameters in the config file as parser arguments, right?