Skip to content

Commit

Permalink
Show correct command name in help when run as kubectl plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
mumoshu committed Oct 9, 2020
1 parent 500fa1f commit 456ba45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kubeconf/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func getDefaultOp() Op {
// and decides which operation should be taken.
func New() *cobra.Command {
cmd := &cobra.Command{
Use: os.Args[0],
Use: selfName(),
RunE: func(cmd *cobra.Command, args []string) error {
//return getDefaultOp().Run(color.Output, color.Error)
return getDefaultOp().Run(color.Output, color.Error)
Expand Down

0 comments on commit 456ba45

Please sign in to comment.