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