mirror of
https://github.com/Threnklyn/jira.git
synced 2026-06-07 21:43:32 +02:00
[#158] always print usage to stdout
This commit is contained in:
+2
-1
@@ -103,7 +103,8 @@ Commands:
|
|||||||
|
|
||||||
func CommandLine(fig *figtree.FigTree, o *oreo.Client) *kingpin.Application {
|
func CommandLine(fig *figtree.FigTree, o *oreo.Client) *kingpin.Application {
|
||||||
app := kingpin.New("jira", "Jira Command Line Interface")
|
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 {
|
app.Command("version", "Prints version").PreAction(func(*kingpin.ParseContext) error {
|
||||||
fmt.Println(jira.VERSION)
|
fmt.Println(jira.VERSION)
|
||||||
panic(Exit{Code: 0})
|
panic(Exit{Code: 0})
|
||||||
|
|||||||
Reference in New Issue
Block a user