Skip to content

Commit

Permalink
Fix global config-file flag
Browse files Browse the repository at this point in the history
The shorthand `C` was actually used as default value for the flag
  • Loading branch information
sladkoff committed Jan 7, 2019
1 parent d572e5c commit 575dcdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func init() {
rootCmd.AddCommand(produce.CmdProduce)

// use upper-case letters for shorthand params to avoid conflicts with local flags
rootCmd.PersistentFlags().StringVar(&cfgFile, "config-file", "C", "config file (default is $HOME/.kafkactl.yml)")
rootCmd.PersistentFlags().StringVarP(&cfgFile, "config-file", "C", "", "config file (default is $HOME/.kafkactl.yml)")
rootCmd.PersistentFlags().BoolVarP(&Verbose, "verbose", "V", false, "verbose output")
}

Expand Down

0 comments on commit 575dcdb

Please sign in to comment.