Skip to content

Commit

Permalink
[#158] always print usage to stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
coryb committed Apr 1, 2018
1 parent 585382e commit 79c83f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jiracli/usage.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ Commands:

func CommandLine(fig *figtree.FigTree, o *oreo.Client) *kingpin.Application {
app := kingpin.New("jira", "Jira Command Line Interface")

app.UsageWriter(os.Stdout)
app.ErrorWriter(os.Stderr)
app.Command("version", "Prints version").PreAction(func(*kingpin.ParseContext) error {
fmt.Println(jira.VERSION)
panic(Exit{Code: 0})
Expand Down

0 comments on commit 79c83f6

Please sign in to comment.