Skip to content

Commit

Permalink
fix --noedit flag with "dups" command
Browse files Browse the repository at this point in the history
  • Loading branch information
coryb committed Aug 10, 2016
1 parent 6f73b8c commit 37c07fa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions main/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
)

var (
log = logging.MustGetLogger("jira")
log = logging.MustGetLogger("jira")
defaultFormat = "%{color}%{time:2006-01-02T15:04:05.000Z07:00} %{level:-5s} [%{shortfile}]%{color:reset} %{message}"
)

Expand All @@ -35,7 +35,7 @@ func main() {
user := os.Getenv("USER")
home := os.Getenv("HOME")
defaultQueryFields := "summary,created,updated,priority,status,reporter,assignee"
defaultSort := "priority asc, created"
defaultSort := "priority asc, key"
defaultMaxResults := 500

usage := func(ok bool) {
Expand Down Expand Up @@ -368,6 +368,7 @@ Command Options:
requireArgs(2)
err = c.CmdBlocks(args[0], args[1])
case "dups":
setEditing(true)
requireArgs(2)
if err = c.CmdDups(args[0], args[1]); err == nil {
opts["resolution"] = "Duplicate"
Expand All @@ -382,7 +383,7 @@ Command Options:
err = c.CmdTransition(args[0], "done")
}
}

}
case "watch":
requireArgs(1)
Expand Down

0 comments on commit 37c07fa

Please sign in to comment.