Skip to content

Commit 58f6bef

Browse files
authored
Merge pull request cli#651 from doi-t/fix-issue-view-description
Fix 'gh issue view' usage description
2 parents 8a4fd43 + 102cfdb commit 58f6bef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

command/issue.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import (
2323
func init() {
2424
RootCmd.AddCommand(issueCmd)
2525
issueCmd.AddCommand(issueStatusCmd)
26-
issueCmd.AddCommand(issueViewCmd)
2726

2827
issueCmd.AddCommand(issueCreateCmd)
2928
issueCreateCmd.Flags().StringP("title", "t", "",
@@ -39,6 +38,7 @@ func init() {
3938
issueListCmd.Flags().IntP("limit", "L", 30, "Maximum number of issues to fetch")
4039
issueListCmd.Flags().StringP("author", "A", "", "Filter by author")
4140

41+
issueCmd.AddCommand(issueViewCmd)
4242
issueViewCmd.Flags().BoolP("preview", "p", false, "Display preview of issue content")
4343
}
4444

@@ -67,7 +67,7 @@ var issueStatusCmd = &cobra.Command{
6767
RunE: issueStatus,
6868
}
6969
var issueViewCmd = &cobra.Command{
70-
Use: "view {<number> | <url> | <branch>}",
70+
Use: "view {<number> | <url>}",
7171
Args: func(cmd *cobra.Command, args []string) error {
7272
if len(args) < 1 {
7373
return FlagError{errors.New("issue number or URL required as argument")}

0 commit comments

Comments
 (0)