`--output` doesn't work in `pulsarctl token` command
sijie opened this issue · 1 comments
sijie commented
Problem
--output
has been listed in the examples of pulsarctl token
command, but there is no option --output
. See the following error:
$ pulsarctl token create-secret-key --output my-secret.key
Error: unknown flag: --output
Usage: pulsarctl token create-secret-key [flags]
Examples:
#Create a secret key.
pulsarctl token create-secret-key
#Create a base64 encoded secret key.
pulsarctl token create-secret-key --base64
#Create a secret key and save it to a file.
pulsarctl token create-secret-key --output (file path)
Solution
The help message should be fixed. Because there is no option --output
, the right option is --output-file
.