Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow override configuration with command line args [enhancement] #22

Open
tijsmaas opened this issue May 13, 2020 · 0 comments
Open

Allow override configuration with command line args [enhancement] #22

tijsmaas opened this issue May 13, 2020 · 0 comments

Comments

@tijsmaas
Copy link

Nice work to streamline config files! What I usually do is load the configuration file, but allow the command line arguments to override the settings. The advantage is that the conf file does not need changing for every small experiment.

The hierarchy stays the same, for example in the (yaml) conf file:

sound:
    volume_left: 50

Could be exec'd with modified settings like so:
myfile.py --sound.volume_left 80

If you like the idea, I can implement the feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant