summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/root.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/root.go b/cmd/root.go
index 1048bf2..d1747c3 100644
--- a/cmd/root.go
+++ b/cmd/root.go
@@ -14,6 +14,10 @@ var cfgFile string
var rootCmd = &cobra.Command{
Use: "demoon",
Short: "demoon",
+ Run: func(cmd *cobra.Command, args []string) {
+ // Default action if no subcommand provided
+ cmd.Help()
+ },
}
func init() {