Skip to content

Commit

Permalink
add version flag back in
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Couture-Beil <alex@mofo.ca>
  • Loading branch information
alexcb committed Jun 15, 2021
1 parent 6714a36 commit cff4041
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmd/secretshare/main.go
Expand Up @@ -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)
Expand Down

0 comments on commit cff4041

Please sign in to comment.