Skip to content

Commit

Permalink
Make subctl command variable
Browse files Browse the repository at this point in the history
so that the help can display proper output when subctl is used as a
standalone CLI or as kubectl-plugin.

Epic: submariner-io/enhancements#182

Signed-off-by: Janki Chhatbar <[email protected]>
  • Loading branch information
Jaanki committed Jun 19, 2023
1 parent d5c7743 commit 559cfb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/subctl/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ package subctl
import (
"fmt"
"os"
"path/filepath"
"strings"

"github.com/pkg/errors"
Expand Down Expand Up @@ -55,7 +56,7 @@ func init() {

// rootCmd represents the base command when called without any subcommands.
var rootCmd = &cobra.Command{
Use: "subctl",
Use: filepath.Base(os.Args[0]),
Short: "Deploy, manage, verify and diagnose Submariner deployments",
}

Expand Down

0 comments on commit 559cfb3

Please sign in to comment.