Skip to content

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

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

Activity

  1. added
    priority-3Affects a small number of users or is largely cosmetic
    gh-authrelating to the gh auth command
    and removed on Mar 7, 2024
  2. guerinoni commented on Mar 11, 2024

    @guerinoni
    Contributor

    This is done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggh-authrelating to the gh auth commandhelp wantedContributions welcomepriority-3Affects 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