diff --git a/cli/cmd/root.go b/cli/cmd/root.go index c4b829526..7aa79be37 100644 --- a/cli/cmd/root.go +++ b/cli/cmd/root.go @@ -146,7 +146,7 @@ func init() { rootCmd.PersistentFlags().StringP("account", "a", "", "account subdomain of URL (i.e. .lacework.net)", ) - rootCmd.PersistentFlags().StringP("subaccount", "u", "", + rootCmd.PersistentFlags().String("subaccount", "", "sub-account name inside your organization (org admins only)", ) diff --git a/integration/compliance_test.go b/integration/compliance_test.go index b36add8f6..e22d92cc7 100644 --- a/integration/compliance_test.go +++ b/integration/compliance_test.go @@ -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. `, diff --git a/integration/configure_test.go b/integration/configure_test.go index c4f555041..ffac7703c 100644 --- a/integration/configure_test.go +++ b/integration/configure_test.go @@ -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()) diff --git a/integration/help_test.go b/integration/help_test.go index 14774a6ec..a30b3c428 100644 --- a/integration/help_test.go +++ b/integration/help_test.go @@ -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. `, @@ -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. `,