diff options
| author | KubeEdge Bot <48982446+kubeedge-bot@users.noreply.github.com> | 2023-10-10 10:06:55 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-10 10:06:55 +0800 |
| commit | b5c78d4b64665bdcefdc5f7462ec498f0998ec98 (patch) | |
| tree | a241e4120c239a3054cdbca67a8837f2822b3dfe /keadm | |
| parent | Merge pull request #4825 from luomengY/modify_mqtt_static (diff) | |
| parent | new flag for keadm (diff) | |
| download | kubeedge-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.go | 3 |
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() |
