-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
backend/flags: avoiding setting values that aren't specified
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.
- Loading branch information
Showing
2 changed files
with
154 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.