Merge branch 'master' into update-wording-around-gopkgin
This commit is contained in:
commit
b425397570
@ -954,7 +954,7 @@ is checked by the cli internals in order to print the `App.Version` via
|
||||
|
||||
#### Customization
|
||||
|
||||
The default flag may be cusomized to something other than `-v/--version` by
|
||||
The default flag may be customized to something other than `-v/--version` by
|
||||
setting `cli.VersionFlag`, e.g.:
|
||||
|
||||
<!-- {
|
||||
|
@ -79,7 +79,12 @@ func (c *Context) IsSet(name string) bool {
|
||||
return
|
||||
}
|
||||
|
||||
envVarValue := reflect.ValueOf(f).FieldByName("EnvVar")
|
||||
val := reflect.ValueOf(f)
|
||||
if val.Kind() == reflect.Ptr {
|
||||
val = val.Elem()
|
||||
}
|
||||
|
||||
envVarValue := val.FieldByName("EnvVar")
|
||||
if !envVarValue.IsValid() {
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user