diff --git a/Changes b/Changes index f475aee..3b5f4a6 100644 --- a/Changes +++ b/Changes @@ -1,10 +1,17 @@ Changes ======= +v0.0.3 + * Add short command option and usage + * Add print PullRequest url option + * Add print Issue API url option + * Add open any browser option + * Add version option + 0.0.2 * Add document link * Raise not found error when Pull reqesut is not found * Add debug option -0.0.2 +0.0.1 First release! diff --git a/README.md b/README.md index 848c093..290e917 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,8 @@ $ tosa sha Print debug log. -h, --help Show this help message and exit. + + -v, --version Print current version. ``` *NOTE*: Only first time, `tosa` requires your Github username and password(and two-factor auth code if you are setting). Because of using [GitHub API v3](https://developer.github.com/v3/). diff --git a/cli.go b/cli.go index 7edc5b1..44cfbf4 100644 --- a/cli.go +++ b/cli.go @@ -81,8 +81,8 @@ func (c *CLI) Run(args []string) int { flags.BoolVar(&apiurl, "a", false, "") flags.BoolVar(&newline, "newline", true, "") flags.BoolVar(&newline, "n", true, "") - flags.BoolVar(&version, "version", true, "") - flags.BoolVar(&version, "v", true, "") + flags.BoolVar(&version, "version", false, "") + flags.BoolVar(&version, "v", false, "") // Parse flag if err := flags.Parse(args[1:]); err != nil { diff --git a/main.go b/main.go index ff0bd01..50992ba 100644 --- a/main.go +++ b/main.go @@ -2,7 +2,7 @@ package main import "os" -const Version string = "0.0.2" +const Version string = "v0.0.3" func main() { cli := &CLI{outStream: os.Stdout, errStream: os.Stderr}