Skip to content

Commit

Permalink
fix(cmd): Simplfy config file path flag name
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesjwarren committed Oct 8, 2018
1 parent d44ba6d commit c280946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion {{cookiecutter.name}}/cmd/{{cookiecutter.name}}/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func {{cookiecutter.name}}Cmd() *cobra.Command {
pflags.String("log-format", "", "log format [console|json] (default is json)")
// Bind flags to config options
config.BindPFlags(map[string]*pflag.Flag{
config.CONFIG_PATH_KEY: pflags.Lookup("config-file"),
config.CONFIG_PATH_KEY: pflags.Lookup("config"),
config.LOG_FORMAT_KEY: pflags.Lookup("log-format"),
})
// Add sub commands
Expand Down

0 comments on commit c280946

Please sign in to comment.