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

Abort on init with duplicate options (i.e. options with the same name). #45

Merged
merged 1 commit into from Nov 25, 2015

Conversation

peda-r
Copy link
Contributor

@peda-r peda-r commented Nov 25, 2015

Reported by Thomas Adam.

Signed-off-by: Peter Rosin peda@lysator.liu.se

@ThomasAdam
Copy link
Contributor

I think it's a little harsh to call abort() here. Why not use cfg_error() instead?

@peda-r
Copy link
Contributor Author

peda-r commented Nov 25, 2015

There is an existing call to abort further down in the function. The situation is similar. The program is clearly not ok, so what good would it do to continue?

@peda-r
Copy link
Contributor Author

peda-r commented Nov 25, 2015

But hey, why not use cfg_error instead? I'll update the branch in a moment

Reported by Thomas Adam.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
troglobit added a commit that referenced this pull request Nov 25, 2015
Abort on init with duplicate options (i.e. options with the same name).

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
@troglobit troglobit merged commit 6cca3b8 into libconfuse:master Nov 25, 2015
@peda-r peda-r deleted the dup-opt branch November 26, 2015 14:34
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

3 participants