fix: tips for karmadactl help options

Signed-off-by: algebra2k <jackson.cloudnative@gmail.com>
This commit is contained in:
algebra2k 2021-11-02 16:51:18 +08:00
parent f3b2c5df36
commit 4df8f92b0f
No known key found for this signature in database
GPG Key ID: 3A27137CF0EC7537
1 changed files with 6 additions and 0 deletions

View File

@ -60,6 +60,9 @@ func NewCmdCordon(cmdOut io.Writer, karmadaConfig KarmadaConfig, cmdStr string)
},
}
flags := cmd.Flags()
opts.AddFlags(flags)
return cmd
}
@ -83,6 +86,9 @@ func NewCmdUncordon(cmdOut io.Writer, karmadaConfig KarmadaConfig, cmdStr string
},
}
flags := cmd.Flags()
opts.AddFlags(flags)
return cmd
}