Skip to content

Commit

Permalink
Allow spaces in EnvVar
Browse files Browse the repository at this point in the history
  • Loading branch information
subchen authored Mar 16, 2018
1 parent 304aa93 commit 4149047
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ func (f *Flag) initialize() {
}

for _, name := range strings.Split(f.EnvVar, ",") {
name = strings.TrimSpace(name)
if value, ok := os.LookupEnv(name); ok {
f.wrapValue.Set(value)
f.Visited = true
Expand Down

0 comments on commit 4149047

Please sign in to comment.