Skip to content

Commit

Permalink
fix: no program args now outputs the root help again (#398)
Browse files Browse the repository at this point in the history
  • Loading branch information
APErebus authored Sep 16, 2024
1 parent 599405e commit a0eec58
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/cmd/root/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,10 @@ func NewCmdRoot(f factory.Factory, clientFactory apiclient.ClientFactory, askPro

cmd.RunE = func(cmd *cobra.Command, args []string) error {
if versionParameter {
versionCommand.RunE(cmd, args)
return versionCommand.RunE(cmd, args)
} else {
return cmd.Help()
}

return nil
}

return cmd
Expand Down

0 comments on commit a0eec58

Please sign in to comment.