From 8a804bd82b8639cf0a500c151a3c118b914a261e Mon Sep 17 00:00:00 2001 From: "James Z.M. Gao" Date: Wed, 20 Mar 2024 09:06:29 +0800 Subject: [PATCH] set DisableFlagParsing to true for NewKubectlWrapperCmd --- cmd/kuberlr/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/kuberlr/main.go b/cmd/kuberlr/main.go index 9349a32..31a8878 100644 --- a/cmd/kuberlr/main.go +++ b/cmd/kuberlr/main.go @@ -35,7 +35,7 @@ func NewKubectlWrapperCmd() *cobra.Command { return &cobra.Command{ Use: "kubectl", Short: "Wrap and exec a suitable version kubectl command", - DisableFlagParsing: false, + DisableFlagParsing: true, Run: func(cmd *cobra.Command, args []string) { kubectlWrapperMode(args) },