Skip to content

Commit

Permalink
Print help when subcommand not provided
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusbreivik committed Jan 6, 2021
1 parent 3fe7028 commit 4cc335d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ var rootCmd = &cobra.Command{
"temperature, co2 level, nois level, humidity, firmware data, wifi signal strength,\n" +
"and more",
Example: "netatmo temp --indoor",
RunE: func(cmd *cobra.Command, args []string) error {

return nil
Run: func(cmd *cobra.Command, args []string) {
cmd.Help()
},
}

Expand Down

0 comments on commit 4cc335d

Please sign in to comment.