diff --git a/pkg/cmd/auth/token/token.go b/pkg/cmd/auth/token/token.go index 5f6f4d915..2c57771b6 100644 --- a/pkg/cmd/auth/token/token.go +++ b/pkg/cmd/auth/token/token.go @@ -27,11 +27,13 @@ func NewCmdToken(f *cmdutil.Factory, runF func(*TokenOptions) error) *cobra.Comm cmd := &cobra.Command{ Use: "token", - Short: "Print the authentication token gh is configured to use", + Short: "Print the authentication token gh uses for a hostname and account", Long: heredoc.Docf(` This command outputs the authentication token for an account on a given GitHub host. - Without the %[1]s--user%[1]s flag, the token for the currently active user is printed. + Without the %[1]s--hostname%[1]s flag, the default host is chosen. + + Without the %[1]s--user%[1]s flag, the currently active account for the host is chosen. `, "`"), Args: cobra.ExactArgs(0), RunE: func(cmd *cobra.Command, args []string) error {