Skip to content

Commit

Permalink
fix version arg
Browse files Browse the repository at this point in the history
  • Loading branch information
ameshkov committed Aug 18, 2022
1 parent 02ba5b3 commit 2d9e9be
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 @@ -48,8 +48,8 @@ type Options struct {

func main() {
for _, arg := range os.Args {
if arg == "--version" {
fmt.Printf("dnsproxy version: %s\n", VersionString)
if arg == "--version" || arg == "-v" {
fmt.Printf("godnsbench version: %s\n", VersionString)
os.Exit(0)
}
}
Expand Down

0 comments on commit 2d9e9be

Please sign in to comment.