Skip to content

Commit

Permalink
make things compatible with goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
egonelbre committed Jul 12, 2023
1 parent c4ed52a commit 0e1ab4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

var (
version = flag.Bool("version", false, "print version")
printVersion = flag.Bool("version", false, "print version")

details = flag.Bool("details", false, "detailed help")
verbose = flag.Bool("verbose", false, "print extended info")
Expand Down Expand Up @@ -48,7 +48,7 @@ func main() {
os.Exit(0)
}

if *version {
if *printVersion {
PrintVersion()
os.Exit(0)
}
Expand Down

0 comments on commit 0e1ab4b

Please sign in to comment.