Skip to content

Commit

Permalink
Fix override env flag (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
giongto35 authored May 23, 2021
1 parent eddbf42 commit bc6027b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/config/shared/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,5 @@ func (env *Environment) Get() environment.Env {
}

func (env *Environment) WithFlags() {
val := string(*env)
flag.StringVar(&val, "env", val, "Specify environment type: [dev, staging, prod]")
flag.StringVar((*string)(env), "env", string(*env), "Specify environment type: [dev, staging, prod]")
}

0 comments on commit bc6027b

Please sign in to comment.