~kota/metweather

c166ea977f8e60ea993cbf9320f87b8226d45934 — Dakota Walsh 4 months ago 0bd1679
fix location help message
2 files changed, 2 insertions(+), 2 deletions(-)

M cmd/forecast.go
M cmd/observation.go
M cmd/forecast.go => cmd/forecast.go +1 -1
@@ 19,7 19,7 @@ var forecastCmd = &cobra.Command{

func init() {
	rootCmd.AddCommand(forecastCmd)
	forecastCmd.PersistentFlags().StringP("location", "l", "", "Location used for the weather forecast")
	forecastCmd.PersistentFlags().StringP("location", "l", "", "location used for the weather forecast")
	viper.BindPFlag("location", forecastCmd.PersistentFlags().Lookup("location"))
}


M cmd/observation.go => cmd/observation.go +1 -1
@@ 20,7 20,7 @@ var observationCmd = &cobra.Command{

func init() {
	rootCmd.AddCommand(observationCmd)
	observationCmd.PersistentFlags().StringP("location", "l", "", "Location used for the weather observation")
	observationCmd.PersistentFlags().StringP("location", "l", "", "location used for the weather observation")
	viper.BindPFlag("location", observationCmd.PersistentFlags().Lookup("location"))
}