forked from spf13/viper
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
find() looks for flag's default values only when requested.
Default value should be looked for by Get(), but not by IsSet(). This logic should remain inside find(), to make sure that shadowing of keys is handled properly. Fixes Issue spf13#276.
- Loading branch information
1 parent
33ace82
commit d1f5a3b
Showing
1 changed file
with
27 additions
and
21 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
This is sooo close to being right. The return from
IsSet
needs to use spf13/pflag'sdefaultZeroValue()
from itsflag
package.