From 29d3b4c58b9f972e4c924e335ff2f3913a6cdfdf Mon Sep 17 00:00:00 2001 From: Andrew Suderman Date: Wed, 7 Jul 2021 21:17:10 -0600 Subject: [PATCH] fix commandline flags --- cmd/root.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/root.go b/cmd/root.go index f2475c5..3f98c75 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -77,8 +77,7 @@ func init() { pingTestCmd.PersistentFlags().StringSliceVarP(&pingTargets, "targets", "t", nil, "The list of targets to ping.") klog.InitFlags(nil) - flag.Parse() - pflag.CommandLine.AddGoFlagSet(flag.CommandLine) + pflag.CommandLine.AddGoFlag(flag.CommandLine.Lookup("v")) envMap := map[string]string{ "AGONES_CLIENT_CERT": "cert",