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

Ensure config file is loaded #42

Closed
wants to merge 1 commit into from
Closed

Ensure config file is loaded #42

wants to merge 1 commit into from

Conversation

daveadams
Copy link
Contributor

As reported in #32, any config file specified on the command line was being ignored.

The Config.Merge() function did not attempt to merge the Path field, and so any command-line specified config file path was being lost when DefaultConfig() was being merged with the provided config.

This PR should fix this issue.

When the command line config is merged with the default config, any
specified `-config` argument was being lost before it was ever read
or parsed. This patch adds the `Path` field to the `Config.Merge()`
function, and includes a test case.
sethvargo added a commit that referenced this pull request May 8, 2016
sethvargo added a commit that referenced this pull request May 8, 2016
sethvargo added a commit that referenced this pull request May 8, 2016
@sethvargo sethvargo closed this in #43 May 8, 2016
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

Successfully merging this pull request may close these issues.

None yet

1 participant