Skip to content

Commit

Permalink
Rename --show-pulls to --include-pulls
Browse files Browse the repository at this point in the history
  • Loading branch information
vermiculus committed Feb 15, 2017
1 parent 6a4212b commit abeb048
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions commands/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ With no arguments, show a list of open issues.
-^ --sort-ascending
Sort by ascending dates instead of descending.
--show-pulls
Show pull requests as well.
--include-pulls
Include pull requests as well as issues.
`,
}

Expand All @@ -159,7 +159,7 @@ With no arguments, show a list of open issues.
flagIssueCopy,
flagIssueBrowse,
flagIssueSortAscending bool
flagIssueShowPulls bool
flagIssueIncludePulls bool

flagIssueMilestone uint64

Expand Down Expand Up @@ -187,7 +187,7 @@ func init() {
cmdIssue.Flag.StringVarP(&flagIssueSince, "since", "d", "", "DATE")
cmdIssue.Flag.StringVarP(&flagIssueSort, "sort", "o", "created", "SORT_KEY")
cmdIssue.Flag.BoolVarP(&flagIssueSortAscending, "sort-ascending", "^", false, "SORT_KEY")
cmdIssue.Flag.BoolVarP(&flagIssueShowPulls, "show-pulls", "", false, "SHOW_PULLS")
cmdIssue.Flag.BoolVarP(&flagIssueIncludePulls, "include-pulls", "", false, "INCLUDE_PULLS")

cmdIssue.Use(cmdCreateIssue)
CmdRunner.Use(cmdIssue)
Expand Down Expand Up @@ -245,7 +245,7 @@ func listIssues(cmd *Command, args *Args) {

colorize := ui.IsTerminal(os.Stdout)
for _, issue := range issues {
if !flagIssueShowPulls && issue.PullRequest != nil {
if !flagIssueIncludePulls && issue.PullRequest != nil {
continue
}

Expand Down

0 comments on commit abeb048

Please sign in to comment.