Skip to content

Commit

Permalink
feat(kubectl): root cmd return helps
Browse files Browse the repository at this point in the history
The root commands returns the help output

Signed-off-by: Gianluca Arbezzano <[email protected]>
  • Loading branch information
Gianluca Arbezzano committed Dec 12, 2019
1 parent f626806 commit a69186e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/cmd/profefe.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ func NewProfefeCmd(streams genericclioptions.IOStreams) *cobra.Command {
PersistentPreRun: func(c *cobra.Command, args []string) {
c.SetOutput(streams.ErrOut)
},
Run: func(cmd *cobra.Command, args []string) {},
Run: func(cmd *cobra.Command, args []string) {
cmd.Help()
},
}

flags.AddFlagSet(rootCmd.PersistentFlags())
Expand Down

0 comments on commit a69186e

Please sign in to comment.