diff --git a/cmd/secretshare/main.go b/cmd/secretshare/main.go index 3f30837..8315670 100644 --- a/cmd/secretshare/main.go +++ b/cmd/secretshare/main.go @@ -337,6 +337,11 @@ func main() { } loggerEnabled = progOpts.Verbose + if progOpts.Version { + fmt.Printf("secretshare version: %s\n", Version) + os.Exit(0) + } + pub, priv, err := genOrLoadKeys() if err != nil { panic(err)