diff --git a/cmd/root.go b/cmd/root.go index 0c69d6e..34d4eea 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -35,6 +35,11 @@ func Execute() { NoExtraNewlines: true, }) + if len(os.Args[1:]) < 1 { + rootCmd.Help() + os.Exit(1) + } + if err := rootCmd.Execute(); err != nil { log.Error(err) os.Exit(1)