equal
deleted
inserted
replaced
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. |