pulsarctl icon indicating copy to clipboard operation
pulsarctl copied to clipboard

`--output` doesn't work in `pulsarctl token` command

Open sijie opened this issue 3 years ago • 1 comments

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.

sijie avatar Feb 14 '22 16:02 sijie

I submitted #https://github.com/streamnative/pulsarctl/pull/608 to fix this, could you review this?

nodece avatar Feb 16 '22 07:02 nodece