From cff404145d929a3bf24086afec6f0f7f6fe32ba3 Mon Sep 17 00:00:00 2001 From: Alex Couture-Beil Date: Tue, 15 Jun 2021 11:06:49 -0700 Subject: [PATCH] add version flag back in Signed-off-by: Alex Couture-Beil --- cmd/secretshare/main.go | 5 +++++ 1 file changed, 5 insertions(+) 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)