Skip to content

Commit

Permalink
Merge pull request #42 from ikeisuke/feature/version
Browse files Browse the repository at this point in the history
Add --version flag for homebrew test
  • Loading branch information
simeji committed Dec 8, 2016
2 parents 3710988 + a906dc3 commit 97c7f90
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmd/jid/jid.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,23 @@ import (
"github.com/simeji/jid"
)

const VERSION = "0.6.2"

func main() {
content := os.Stdin

var qm bool
var version bool
qs := "."

flag.BoolVar(&qm, "q", false, "Output query mode")
flag.BoolVar(&version, "version", false, "print the version and exit")
flag.Parse()

if version {
fmt.Println(fmt.Sprintf("jid version v%s", VERSION))
os.Exit(0)
}
args := flag.Args()
if len(args) > 0 {
qs = args[0]
Expand Down

0 comments on commit 97c7f90

Please sign in to comment.