fix wrong description for "dry-run" option

Signed-off-by: yanggang <gang.yang@daocloud.io>
This commit is contained in:
yanggang 2022-11-09 10:27:08 +08:00
parent d7bd490f94
commit e040e0ef3c
No known key found for this signature in database
GPG Key ID: 7F6E0CAD1556A240
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ func NewCmdRegister(parentCommand string) *cobra.Command {
flags.StringVar(&opts.KarmadaAgentImage, "karmada-agent-image", fmt.Sprintf("swr.ap-southeast-1.myhuaweicloud.com/karmada/karmada-agent:%s", releaseVer.PatchRelease()), "Karmada agent image.")
flags.Int32Var(&opts.KarmadaAgentReplicas, "karmada-agent-replicas", 1, "Karmada agent replicas.")
flags.Int32Var(&opts.CertExpirationSeconds, "cert-expiration-seconds", DefaultCertExpirationSeconds, "The expiration time of certificate.")
flags.BoolVar(&opts.DryRun, "dry-run", false, "Don't apply any changes; just output what would be done.")
flags.BoolVar(&opts.DryRun, "dry-run", false, "Run the command in dry-run mode, without making any server requests.")
return cmd
}