diff --git a/command/issue.go b/command/issue.go index 9e57556e1..fd2e03eef 100644 --- a/command/issue.go +++ b/command/issue.go @@ -38,7 +38,7 @@ func init() { issueListCmd.Flags().StringP("author", "A", "", "Filter by author") issueCmd.AddCommand(issueViewCmd) - issueViewCmd.Flags().BoolP("web", "w", false, "Open issue in browser") + issueViewCmd.Flags().BoolP("web", "w", false, "Open an issue in the browser") } var issueCmd = &cobra.Command{ @@ -74,7 +74,10 @@ var issueViewCmd = &cobra.Command{ return nil }, Short: "View an issue", - RunE: issueView, + Long: `Display the title, body, and other information about an issue. + +With '--web', open the issue in a web browser instead.`, + RunE: issueView, } func issueList(cmd *cobra.Command, args []string) error { diff --git a/command/pr.go b/command/pr.go index 797ce9606..a5b1f0079 100644 --- a/command/pr.go +++ b/command/pr.go @@ -31,7 +31,7 @@ func init() { prListCmd.Flags().StringSliceP("label", "l", nil, "Filter by label") prListCmd.Flags().StringP("assignee", "a", "", "Filter by assignee") - prViewCmd.Flags().BoolP("web", "w", false, "Open pull request in browser") + prViewCmd.Flags().BoolP("web", "w", false, "Open a pull request in the browser") } var prCmd = &cobra.Command{ @@ -56,11 +56,13 @@ var prStatusCmd = &cobra.Command{ } var prViewCmd = &cobra.Command{ Use: "view [{ | | }]", - Short: "View a pull request in the browser", - Long: `View a pull request specified by the argument. + Short: "View a pull request", + Long: `Display the title, body, and other information about a pull request. -Without an argument, the pull request that belongs to the current -branch is displayed.`, +Without an argument, the pull request that belongs to the current branch +is displayed. + +With '--web', open the pull request in a web browser instead.`, RunE: prView, } diff --git a/command/repo.go b/command/repo.go index 8efda0595..c0f16b09c 100644 --- a/command/repo.go +++ b/command/repo.go @@ -37,7 +37,7 @@ func init() { repoForkCmd.Flags().Lookup("remote").NoOptDefVal = "true" repoCmd.AddCommand(repoViewCmd) - repoViewCmd.Flags().BoolP("web", "w", false, "Open repository in browser") + repoViewCmd.Flags().BoolP("web", "w", false, "Open a repository in the browser") } var repoCmd = &cobra.Command{ @@ -80,10 +80,12 @@ With no argument, creates a fork of the current repository. Otherwise, forks the var repoViewCmd = &cobra.Command{ Use: "view []", - Short: "View a repository in the browser", - Long: `View a GitHub repository. + Short: "View a repository", + Long: `Display the description and the README of a GitHub repository. -With no argument, the repository for the current directory is displayed.`, +With no argument, the repository for the current directory is displayed. + +With '--web', open the repository in a web browser instead.`, RunE: repoView, }