Skip to content

Commit

Permalink
Trim v for version output
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatih Cetinkaya committed Jun 8, 2016
1 parent 33994e8 commit cf9047a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gocli.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ func (cl Cli) PrintVersion(extra bool) {
var ver string

if extra == true {
ver += fmt.Sprintf("Bin Version : %s\n", cl.Version)
ver += fmt.Sprintf("Bin Version : %s\n", strings.TrimPrefix(cl.Version, "v"))
ver += fmt.Sprintf("Go version : %s", runtime.Version())
} else {
ver = fmt.Sprintf("%s", cl.Version)
ver = fmt.Sprintf("%s", strings.TrimPrefix(cl.Version, "v"))
}

fmt.Println(ver)
Expand Down

0 comments on commit cf9047a

Please sign in to comment.