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:
Matt Bostock 2017-07-05 12:09:03 +01:00 committed by Fabian Reinartz
parent d5f0d1773f
commit 16232ce654
1 changed files with 1 additions and 1 deletions

View File

@ -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"))