Skip to content

Commit

Permalink
fix(cli): add version flag
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklasfrahm committed Aug 11, 2022
1 parent afa3541 commit 8ebc789
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"github.com/spf13/cobra"
)

var version = "dev"
var interfaceName string
var timeout time.Duration
var retries uint
Expand Down Expand Up @@ -38,6 +39,7 @@ Note:
cmd.Help()
os.Exit(0)
},
Version: version,
SilenceUsage: true,
}

Expand Down

0 comments on commit 8ebc789

Please sign in to comment.