Skip to content

Commit

Permalink
print help when pman is run without args
Browse files Browse the repository at this point in the history
  • Loading branch information
theredditbandit committed May 22, 2024
1 parent 8e5ae0e commit cf02aeb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cf02aeb

Please sign in to comment.