Skip to content

doc bug: gh auth token has incorrect --user option description #8796

@gregsmi

Description

@gregsmi

Describe the bug

gh auth token has incorrect --user option description

Steps to reproduce the behavior

gh auth token --help

Expected vs actual behavior

Actual:
-u, --user string The account to log out of
Should be more like:
-u, --user string The account to output the token for
Presumably copy-paste bug from gh auth logout.

Logs

> gh auth token --help
This command outputs the authentication token for an account on a given GitHub host.

Without the `--hostname` flag, the default host is chosen.

Without the `--user` flag, the active account for the host is chosen.


USAGE
  gh auth token [flags]

FLAGS
  -h, --hostname string   The hostname of the GitHub instance authenticated with
  -u, --user string       The account to log out of

INHERITED FLAGS
  --help   Show help for command

LEARN MORE
  Use `gh <command> <subcommand> --help` for more information about a command.
  Read the manual at https://cli.github.com/manual

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggh-authrelating to the gh auth commandhelp wantedContributions welcomep3Affects a small number of users or is largely cosmetic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions