Skip to content

Commit

Permalink
Fix version in -h flag
Browse files Browse the repository at this point in the history
  • Loading branch information
babs committed Nov 1, 2023
1 parent f7acbcb commit 22da441
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"time"
)

var Version = "0.0.0"
var Version = "v0.0.0"
var CommitHash = "dev"
var BuildTimestamp = "1970-01-01T00:00:00"
var Builder = "go version go1.xx.y os/platform"
Expand Down Expand Up @@ -81,11 +81,11 @@ func main() {
}

func VersionString() string {
return fmt.Sprintf("multiping v%s-%v\n", Version, CommitHash)
return fmt.Sprintf("multiping %v-%v\n", Version, CommitHash)
}

func VersionStringLong() string {
return fmt.Sprintf("multiping v%s-%v (build on %v using %v)\nhttps://github.com/babs/multiping\n\n", Version, CommitHash, BuildTimestamp, Builder)
return fmt.Sprintf("multiping %v-%v (build on %v using %v)\nhttps://github.com/babs/multiping\n\n", Version, CommitHash, BuildTimestamp, Builder)
}

func usage() {
Expand Down

0 comments on commit 22da441

Please sign in to comment.