summaryrefslogtreecommitdiff
path: root/keadm
diff options
context:
space:
mode:
authorKubeEdge Bot <48982446+kubeedge-bot@users.noreply.github.com>2023-10-10 10:06:55 +0800
committerGitHub <noreply@github.com>2023-10-10 10:06:55 +0800
commitb5c78d4b64665bdcefdc5f7462ec498f0998ec98 (patch)
treea241e4120c239a3054cdbca67a8837f2822b3dfe /keadm
parentMerge pull request #4825 from luomengY/modify_mqtt_static (diff)
parentnew flag for keadm (diff)
downloadkubeedge-b5c78d4b64665bdcefdc5f7462ec498f0998ec98.tar.gz
Merge pull request #5058 from Shelley-BaoYue/keadmflag
Create a new, empty flag set for keadm
Diffstat (limited to 'keadm')
-rw-r--r--keadm/cmd/keadm/app/keadm.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/keadm/cmd/keadm/app/keadm.go b/keadm/cmd/keadm/app/keadm.go
index 54e2d49b4..24556a3db 100644
--- a/keadm/cmd/keadm/app/keadm.go
+++ b/keadm/cmd/keadm/app/keadm.go
@@ -26,7 +26,8 @@ import (
// Run executes the keadm command
func Run() error {
- pflag.CommandLine.AddGoFlagSet(flag.CommandLine)
+ flagSet := pflag.NewFlagSet("keadm", pflag.ExitOnError)
+ flagSet.AddGoFlagSet(flag.CommandLine)
cmd := cmd.NewKubeedgeCommand()
return cmd.Execute()