Skip to content

Commit

Permalink
tidy version display
Browse files Browse the repository at this point in the history
  • Loading branch information
mwyvr committed Feb 23, 2023
1 parent 51a3a8f commit ae6050b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion knockr.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,11 @@ func main() {
}

if err := run(c); err != nil {
fmt.Printf("knockr-%v error: %s\n\n", version, err)
if version != "" {
version = "-" + version
}

fmt.Printf("knockr%v error: %s\n\n", version, err)
flag.Usage()
os.Exit(1)
}
Expand Down

0 comments on commit ae6050b

Please sign in to comment.