Skip to content

Commit a4e3df3

Browse files
Fix flag descriptions for ssm-setup-cli
cr: https://code.amazon.com/reviews/CR-107142368
1 parent 4db2aeb commit a4e3df3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

agent/setupcli/setupcli.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -763,14 +763,14 @@ func greengrassParamVerification() string {
763763

764764
func flagUsage() {
765765

766-
fmt.Fprintln(os.Stderr, "\n-env \tInstruct cli what environment you are installing to ('greengrass'/'onprem'). Default set to 'greengrass'")
766+
fmt.Fprintln(os.Stderr, "\n-env \tInstruct cli what environment you are installing to ('greengrass'/'onprem'). Default set to 'onprem' \t(OPTIONAL)")
767767

768768
fmt.Fprintln(os.Stderr, "\nCommand-line Usage for ONPREM environment:")
769-
fmt.Fprintln(os.Stderr, "\t-region \tRegion used for ssm agent download location and registration")
770-
fmt.Fprintln(os.Stderr, "\t-version\tVersion of the ssm agent to download ('stable' or 'latest'). Default set to 'stable' if agent is not already installed")
771-
fmt.Fprintln(os.Stderr, "\t-downgrade\tSet when the agent needs to be downgraded")
772-
fmt.Fprintln(os.Stderr, "\t-skip-signature-validation\tSkip signature validation")
773-
fmt.Fprintln(os.Stderr, "\t-register \tRegister ssm agent if unregistered or override is set")
769+
fmt.Fprintln(os.Stderr, "\t-region \tRegion used for ssm agent download location and registration \t(REQUIRED)")
770+
fmt.Fprintln(os.Stderr, "\t-version\tVersion of the ssm agent to download ('stable' or 'latest'). Default set to 'stable' if agent is not already installed \t(OPTIONAL)")
771+
fmt.Fprintln(os.Stderr, "\t-downgrade\tSet when the agent needs to be downgraded \t(OPTIONAL but REQUIRED during downgrade)")
772+
fmt.Fprintln(os.Stderr, "\t-skip-signature-validation\tSkip signature validation \t(OPTIONAL)")
773+
fmt.Fprintln(os.Stderr, "\t-register \tRegister ssm agent if unregistered or override is set \t(REQUIRED)")
774774
fmt.Fprintln(os.Stderr, "\t\t-activation-code \tSSM Activation Code for Onprem environment \t(REQUIRED and paired with activation-id)")
775775
fmt.Fprintln(os.Stderr, "\t\t-activation-id \tSSM Activation ID for Onprem environment \t(REQUIRED and paired with Activation code)")
776776
fmt.Fprintln(os.Stderr, "\t\t-override \t\tOverride existing registration if present \t(OPTIONAL)")
@@ -780,7 +780,7 @@ func flagUsage() {
780780
fmt.Fprintln(os.Stderr, "\t-region \tRegion used for ssm agent download location and registration")
781781
fmt.Fprintln(os.Stderr, "\t-download \tDownload ssm agent install package based on platform")
782782
fmt.Fprintln(os.Stderr, "\t-install \tInstall ssm agent based on platform")
783-
fmt.Fprintln(os.Stderr, "\t-shutdown \tStop SSM Agent")
783+
fmt.Fprintln(os.Stderr, "\t-shutdown \tStop SSM Agent")
784784
fmt.Fprintln(os.Stderr, "\t-register \tRegister ssm agent if unregistered or override is set")
785785
fmt.Fprintln(os.Stderr, "\t\t-role \t\tRole ssm agent will be registered with \t(REQUIRED and paired with tags)")
786786
fmt.Fprintln(os.Stderr, "\t\t-tags \t\tTags to attach to ssm instance on registrations \t(OPTIONAL and paired WITH role)")

0 commit comments

Comments
 (0)