Skip to content

Commit

Permalink
add --version
Browse files Browse the repository at this point in the history
  • Loading branch information
Cory Bennett committed Sep 17, 2015
1 parent 23347dd commit 8385ee2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jira/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ General Options:
-t --template=FILE Template file to use for output/editing
-u --user=USER Username to use for authenticaion (default: %s)
-v --verbose Increase output logging
--version Print version
Query Options:
-a --assignee=USER Username assigned the issue
Expand Down Expand Up @@ -164,6 +165,10 @@ Command Options:

op := optigo.NewDirectAssignParser(map[string]interface{}{
"h|help": usage,
"version": func() {
fmt.Println("version: 0.0.10")
os.Exit(0)
},
"v|verbose+": func() {
logging.SetLevel(logging.GetLevel("")+1, "")
},
Expand Down

0 comments on commit 8385ee2

Please sign in to comment.