Skip to content

Commit d87a60f

Browse files
committed
Update the CLI flag docstrings
Signed-off-by: Noah Stride <noah.stride@goteleport.com>
1 parent 7e15c4b commit d87a60f

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

cmd/main.go

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,14 @@ func newX509CredentialProcessCmd() *cobra.Command {
7878
return nil
7979
},
8080
}
81-
// TODO(strideynet): Review flag help strings.
82-
cmd.Flags().StringVar(&roleARN, "role-arn", "", "TODO. Required.")
81+
cmd.Flags().StringVar(&roleARN, "role-arn", "", "The ARN of the role to assume. Required.")
8382
cmd.MarkFlagRequired("role-arn")
84-
cmd.Flags().StringVar(&region, "region", "", "TODO")
85-
cmd.Flags().StringVar(&profileARN, "profile-arn", "", "TODO. Required.")
83+
cmd.Flags().StringVar(&region, "region", "", "The AWS region to use. Optional.")
84+
cmd.Flags().StringVar(&profileARN, "profile-arn", "", "The ARN of the Roles Anywhere profile to use. Required.")
8685
cmd.MarkFlagRequired("profile-arn")
87-
cmd.Flags().DurationVar(&sessionDuration, "session-duration", 0, "TODO")
88-
cmd.Flags().StringVar(&trustAnchorARN, "trust-anchor-arn", "", "TODO. Required.")
86+
cmd.Flags().DurationVar(&sessionDuration, "session-duration", 0, "The duration of the resulting session. Optional. Can range from 15m to 12h.")
87+
cmd.Flags().StringVar(&trustAnchorARN, "trust-anchor-arn", "", "The ARN of the Roles Anywhere trust anchor to use. Required.")
8988
cmd.MarkFlagRequired("trust-anchor-arn")
90-
cmd.Flags().StringVar(&roleSessionName, "role-session-name", "", "TODO")
89+
cmd.Flags().StringVar(&roleSessionName, "role-session-name", "", "The identifier for the role session. Optional.")
9190
return cmd
9291
}

0 commit comments

Comments
 (0)