diff --git a/cmd/scw/testdata/test-all-usage-cockpit-token-get-usage.golden b/cmd/scw/testdata/test-all-usage-cockpit-token-get-usage.golden index ad13a416a2..891705adbf 100644 --- a/cmd/scw/testdata/test-all-usage-cockpit-token-get-usage.golden +++ b/cmd/scw/testdata/test-all-usage-cockpit-token-get-usage.golden @@ -3,7 +3,7 @@ Get the token associated with the given ID. USAGE: - scw cockpit token get [arg=value ...] + scw cockpit token get [arg=value ...] ARGS: token-id diff --git a/docs/commands/cockpit.md b/docs/commands/cockpit.md index 0285da2032..945864fc34 100644 --- a/docs/commands/cockpit.md +++ b/docs/commands/cockpit.md @@ -408,7 +408,7 @@ Get the token associated with the given ID. **Usage:** ``` -scw cockpit token get [arg=value ...] +scw cockpit token get [arg=value ...] ``` diff --git a/internal/namespaces/cockpit/v1beta1/cockpit_cli.go b/internal/namespaces/cockpit/v1beta1/cockpit_cli.go index 4125062c0d..7558ab80b1 100644 --- a/internal/namespaces/cockpit/v1beta1/cockpit_cli.go +++ b/internal/namespaces/cockpit/v1beta1/cockpit_cli.go @@ -310,7 +310,7 @@ func cockpitTokenGet() *core.Command { Name: "token-id", Required: true, Deprecated: false, - Positional: false, + Positional: true, }, }, Run: func(ctx context.Context, args interface{}) (i interface{}, e error) {