Added keys from env and pflags to AllKeys

This commit is contained in:
Kiril Zvezdarov 2015-02-16 23:42:29 -05:00
parent 347c770cfb
commit 888e1e5f0b

View file

@ -633,6 +633,14 @@ func (v *viper) AllKeys() []string {
m[key] = struct{}{}
}
for key, _ := range v.env {
m[key] = struct{}{}
}
for key, _ := range v.pflags {
m[key] = struct{}{}
}
for key, _ := range v.override {
m[key] = struct{}{}
}