Skip to content

Commit

Permalink
ci suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
theredditbandit committed May 22, 2024
1 parent cea6962 commit db003d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ var rootCmd = &cobra.Command{
SilenceUsage: true,
RunE: func(cmd *cobra.Command, args []string) error {
if len(args) == 0 {
cmd.Help()
err := cmd.Help()
if err != nil {
return errors.Join(err, ErrNoArgs)
}
return ErrNoArgs
}
return nil
Expand Down

0 comments on commit db003d5

Please sign in to comment.