diff --git a/internal/namespaces/account/custom.go b/internal/namespaces/account/custom.go index e871b410b8..cce38500c2 100644 --- a/internal/namespaces/account/custom.go +++ b/internal/namespaces/account/custom.go @@ -35,8 +35,8 @@ func sshKeyCommand() *core.Command { func initCommand() *core.Command { return &core.Command{ - Short: `Initiliaze SSH key`, - Long: `Initiliaze SSH key.`, + Short: `Initialize SSH key`, + Long: `Initialize SSH key.`, Namespace: "account", Resource: "ssh-key", Verb: "init", diff --git a/internal/namespaces/init/init.go b/internal/namespaces/init/init.go index f0629bfe8b..ded047a78e 100644 --- a/internal/namespaces/init/init.go +++ b/internal/namespaces/init/init.go @@ -77,12 +77,10 @@ func initCommand() *core.Command { ArgSpecs: core.ArgSpecs{ { Name: "secret-key", + Short: "Scaleway secret-key", ValidateFunc: core.ValidateSecretKey(), }, - { - Name: "region", - EnumValues: []string{"fr-par", "nl-ams"}, - }, + core.RegionArgSpec(scw.RegionFrPar, scw.RegionNlAms), // `organization-id` is not required before `PreValidateFunc()`, but is required after `PreValidateFunc()`. // See workflow in cobra_utils.go/cobraRun(). // It is not required in the command line: the user is not obliged to type it. @@ -90,10 +88,12 @@ func initCommand() *core.Command { // If `organization-id` is not typed by the user, we set it in `PreValidateFunc()`. { Name: "organization-id", + Short: "Organization ID to use. If none is passed will use default organization ID from the config", ValidateFunc: core.ValidateOrganizationIDRequired(), }, { - Name: "send-usage", + Name: "send-telemetry", + Short: "Send usage statistics and diagnostics", }, { Name: "with-ssh-key",