Skip to content

Commit

Permalink
refactor(cli): remove shorthand of subaccount "u" (#436)
Browse files Browse the repository at this point in the history
Signed-off-by: Salim Afiune Maya <[email protected]>
  • Loading branch information
afiune authored Jun 7, 2021
1 parent af603e1 commit 2decc86
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cli/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func init() {
rootCmd.PersistentFlags().StringP("account", "a", "",
"account subdomain of URL (i.e. <ACCOUNT>.lacework.net)",
)
rootCmd.PersistentFlags().StringP("subaccount", "u", "",
rootCmd.PersistentFlags().String("subaccount", "",
"sub-account name inside your organization (org admins only)",
)

Expand Down
2 changes: 1 addition & 1 deletion integration/compliance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Global Flags:
--nocolor turn off colors
--noninteractive turn off interactive mode (disable spinners, prompts, etc.)
-p, --profile string switch between profiles configured at ~/.lacework.toml
-u, --subaccount string sub-account name inside your organization (org admins only)
--subaccount string sub-account name inside your organization (org admins only)
Use "lacework compliance [command] --help" for more information about a command.
`,
Expand Down
2 changes: 1 addition & 1 deletion integration/configure_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func TestConfigureCommandNonInteractive(t *testing.T) {
"-a", "my-account",
"-k", "my-key",
"-s", "my-secret",
"-u", "my-sub-account",
"--subaccount", "my-sub-account",
)

assert.Empty(t, errB.String())
Expand Down
4 changes: 2 additions & 2 deletions integration/help_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ Global Flags:
--nocolor turn off colors
--noninteractive turn off interactive mode (disable spinners, prompts, etc.)
-p, --profile string switch between profiles configured at ~/.lacework.toml
-u, --subaccount string sub-account name inside your organization (org admins only)
--subaccount string sub-account name inside your organization (org admins only)
Use "lacework configure [command] --help" for more information about a command.
`,
Expand Down Expand Up @@ -160,7 +160,7 @@ Flags:
--nocolor turn off colors
--noninteractive turn off interactive mode (disable spinners, prompts, etc.)
-p, --profile string switch between profiles configured at ~/.lacework.toml
-u, --subaccount string sub-account name inside your organization (org admins only)
--subaccount string sub-account name inside your organization (org admins only)
Use "lacework [command] --help" for more information about a command.
`,
Expand Down

0 comments on commit 2decc86

Please sign in to comment.