diff --git a/pkg/cmd/root/root.go b/pkg/cmd/root/root.go index 11c465e6..2e5ea668 100644 --- a/pkg/cmd/root/root.go +++ b/pkg/cmd/root/root.go @@ -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