From cf02aeb334ca41d2cee3226b02bc442ca73b595f Mon Sep 17 00:00:00 2001 From: aryan <85390033+theredditbandit@users.noreply.github.com> Date: Wed, 22 May 2024 11:45:07 +0530 Subject: [PATCH] print help when pman is run without args --- cmd/root.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/root.go b/cmd/root.go index ffbf314..7e74575 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -23,8 +23,9 @@ var rootCmd = &cobra.Command{ Short: "A cli project manager", Version: version, SilenceUsage: true, - RunE: func(_ *cobra.Command, args []string) error { + RunE: func(cmd *cobra.Command, args []string) error { if len(args) == 0 { + cmd.Help() return ErrNoArgs } return nil