diff --git a/cmd/scw/testdata/test-all-usage-iam-user-update-password-usage.golden b/cmd/scw/testdata/test-all-usage-iam-user-update-password-usage.golden index d5d087a14..4e300e887 100644 --- a/cmd/scw/testdata/test-all-usage-iam-user-update-password-usage.golden +++ b/cmd/scw/testdata/test-all-usage-iam-user-update-password-usage.golden @@ -6,9 +6,8 @@ USAGE: scw iam user update-password [arg=value ...] ARGS: - user-id ID of the user to update - password The new password - [send-email] Whether or not to send an email alerting the user their password has changed + user-id ID of the user to update + password The new password FLAGS: -h, --help help for update-password diff --git a/docs/commands/iam.md b/docs/commands/iam.md index 6a5ad4885..fc3a219e0 100644 --- a/docs/commands/iam.md +++ b/docs/commands/iam.md @@ -1168,7 +1168,6 @@ scw iam user update-password [arg=value ...] |------|---|-------------| | user-id | Required | ID of the user to update | | password | Required | The new password | -| send-email | | Whether or not to send an email alerting the user their password has changed | diff --git a/internal/namespaces/iam/v1alpha1/iam_cli.go b/internal/namespaces/iam/v1alpha1/iam_cli.go index ee0b4255c..5474d73fc 100644 --- a/internal/namespaces/iam/v1alpha1/iam_cli.go +++ b/internal/namespaces/iam/v1alpha1/iam_cli.go @@ -737,13 +737,6 @@ func iamUserUpdatePassword() *core.Command { Deprecated: false, Positional: false, }, - { - Name: "send-email", - Short: `Whether or not to send an email alerting the user their password has changed`, - Required: false, - Deprecated: false, - Positional: false, - }, }, Run: func(ctx context.Context, args interface{}) (i interface{}, e error) { request := args.(*iam.UpdateUserPasswordRequest)