From 01d7781082e737cb6e03d7d7174deee8bd108965 Mon Sep 17 00:00:00 2001 From: siyul-park Date: Fri, 1 Dec 2023 01:58:58 -0500 Subject: [PATCH] fix: unify flag description --- cmd/uniflow/apply/cmd.go | 4 ++-- cmd/uniflow/start/cmd.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/uniflow/apply/cmd.go b/cmd/uniflow/apply/cmd.go index dc3f03d5..404e3fd3 100644 --- a/cmd/uniflow/apply/cmd.go +++ b/cmd/uniflow/apply/cmd.go @@ -40,8 +40,8 @@ func NewCmd(config Config) *cobra.Command { RunE: runApplyCommand(config), } - cmd.PersistentFlags().StringP(FlagNamespace, flag.ToShorthand(FlagNamespace), "", "Set the resource's namespace. If not set, use the default namespace.") - cmd.PersistentFlags().StringP(FlagFile, flag.ToShorthand(FlagFile), "", "Set the file path to be applied.") + cmd.PersistentFlags().StringP(FlagNamespace, flag.ToShorthand(FlagNamespace), "", "Set the resource's namespace. If not set, use the default namespace") + cmd.PersistentFlags().StringP(FlagFile, flag.ToShorthand(FlagFile), "", "Set the file path to be applied") return cmd } diff --git a/cmd/uniflow/start/cmd.go b/cmd/uniflow/start/cmd.go index 558457b9..a94fab17 100644 --- a/cmd/uniflow/start/cmd.go +++ b/cmd/uniflow/start/cmd.go @@ -34,8 +34,8 @@ func NewCmd(config Config) *cobra.Command { RunE: runStartCommand(config), } - cmd.PersistentFlags().StringP(FlagNamespace, flag.ToShorthand(FlagNamespace), "", "Set the worker's namespace.") - cmd.PersistentFlags().StringP(FlagBoot, flag.ToShorthand(FlagBoot), "", "Set the boot file path for initializing nodes.") + cmd.PersistentFlags().StringP(FlagNamespace, flag.ToShorthand(FlagNamespace), "", "Set the worker's namespace") + cmd.PersistentFlags().StringP(FlagBoot, flag.ToShorthand(FlagBoot), "", "Set the boot file path for initializing nodes") return cmd }