fix(cmd/forecast): Add -i flag again

Fixes: https://todo.sr.ht/~timharek/yr/7
Signed-off-by: Tim Hårek Andreassen <tim@harek.no>
This commit is contained in:
Tim Hårek Andreassen 2024-11-13 19:26:59 +01:00
parent 14f46806cd
commit 858b336bcf
No known key found for this signature in database
GPG key ID: E59C7734F0E10EB5

View file

@ -21,7 +21,7 @@ var (
func init() { func init() {
rootCmd.AddCommand(forecastCmd) rootCmd.AddCommand(forecastCmd)
rootCmd.Flags().IntVarP(&interval, "interval", "i", 0, "Number of hours to output") forecastCmd.Flags().IntVarP(&interval, "interval", "i", 0, "Number of hours to output")
} }
func forecast(cmd *cobra.Command, args []string) { func forecast(cmd *cobra.Command, args []string) {