summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShelley-BaoYue <baoyue2@huawei.com>2023-10-08 15:26:25 +0800
committerShelley-BaoYue <baoyue2@huawei.com>2023-10-08 15:26:25 +0800
commit4f5836a53377cfa4a90002bf3eb97c397b1e8139 (patch)
tree46af53e9bec7164ad340490fe477aec901ca1a10
parentMerge pull request #5045 from Shelley-BaoYue/fix-removepod (diff)
downloadkubeedge-4f5836a53377cfa4a90002bf3eb97c397b1e8139.tar.gz
new flag for keadm
Signed-off-by: Shelley-BaoYue <baoyue2@huawei.com>
-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()