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

Open
#593 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
45/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Stale
Tech stack
go
Domain
cli

Research direction

Start at the pulsarctl token create-secret-key command definition and inspect its help examples alongside the --output-file option. Replace the incorrect --output example with --output-file, then run the command's help output or relevant CLI tests to verify the examples match the available flag.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Go
Stars
169
Forks
68
Avg merge
5m
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from streamnative/pulsarctl

All issues in streamnative/pulsarctl

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.