Update config file location in flag usage text (#895)
The config file location was changed in 305263e462
. Update the flag usage text accordingly.
This commit is contained in:
parent
d5f0d1773f
commit
16232ce654
|
@ -50,7 +50,7 @@ func Execute() {
|
|||
func init() {
|
||||
cobra.OnInitialize(initConfig)
|
||||
|
||||
RootCmd.PersistentFlags().String("config", "", "config file (default is $HOME/.amtool.yml)")
|
||||
RootCmd.PersistentFlags().String("config", "", "config file (default is $HOME/.config/amtool/config.yml)")
|
||||
viper.BindPFlag("config", RootCmd.PersistentFlags().Lookup("config"))
|
||||
RootCmd.PersistentFlags().String("alertmanager.url", "", "Alertmanager to talk to")
|
||||
viper.BindPFlag("alertmanager.url", RootCmd.PersistentFlags().Lookup("alertmanager.url"))
|
||||
|
|
Loading…
Reference in New Issue