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

load a config file and move default options (to become more DRY) #5

Merged
merged 4 commits into from Aug 11, 2016

Conversation

Projects
None yet
2 participants
@tijn
Contributor

tijn commented Jul 30, 2016

I moved the logic that sets the default ports up to the option parser block to remove some duplication.

Then I added a bit of code to load settings from a file. The arguments passed on the command line will always override the ones specified in the config file. It will try to find a configuration file in the user dir ($HOME), and then in /etc. It will load the first one it finds.

@rvanlieshout rvanlieshout merged commit d41d1a9 into bluerail:master Aug 11, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment