vendor/github.com/spf13/viper/flags.go
changeset 251 1c52a0eeb952
parent 242 2a9ec03fe5a1
equal deleted inserted replaced
250:c040f992052f 251:1c52a0eeb952
    34 // that implements FlagValue
    34 // that implements FlagValue
    35 type pflagValue struct {
    35 type pflagValue struct {
    36 	flag *pflag.Flag
    36 	flag *pflag.Flag
    37 }
    37 }
    38 
    38 
    39 // HasChanges returns whether the flag has changes or not.
    39 // HasChanged returns whether the flag has changes or not.
    40 func (p pflagValue) HasChanged() bool {
    40 func (p pflagValue) HasChanged() bool {
    41 	return p.flag.Changed
    41 	return p.flag.Changed
    42 }
    42 }
    43 
    43 
    44 // Name returns the name of the flag.
    44 // Name returns the name of the flag.