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

enable a short option for flags #67

Merged
merged 1 commit into from
Sep 2, 2019
Merged

Conversation

steamrolla
Copy link
Contributor

implements #57

  using flag.Var to enable parsing the flags from long or short flag
@tealeg tealeg self-requested a review September 2, 2019 08:14
Copy link
Contributor

@tealeg tealeg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @steamrolla

Thanks very much for this PR. I appreaciate you taking the time to do this, and provide test coverage as well. I'm very happy to merge this code.

@tealeg tealeg merged commit 1fd65b7 into heetch:master Sep 2, 2019
rogpeppe added a commit that referenced this pull request Nov 28, 2019
In #67, the `isFlagSet` logic was changed so that it always returned
true, so even unmentioned flags would override previously set values.

This PR fixes that issue (fixes #79) and also changes the flag tests
to be somewhat more flexible and test this specific issue.

I haven't made any wider fixes because the concept of using command-line
flags as a backend is fundamentally broken in a way that cannot be fixed
(see #63), so will probably be removed in a future major version release
of confita.
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.

2 participants