diff --git a/cmd/root.go b/cmd/root.go index 1149a6d..773738d 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -7,6 +7,7 @@ import ( "github.com/spf13/cobra" ) +var version = "dev" var interfaceName string var timeout time.Duration var retries uint @@ -38,6 +39,7 @@ Note: cmd.Help() os.Exit(0) }, + Version: version, SilenceUsage: true, }