diff --git a/cmd/cdk-erigon/main.go b/cmd/cdk-erigon/main.go index 91364260c23..87fc5dce542 100644 --- a/cmd/cdk-erigon/main.go +++ b/cmd/cdk-erigon/main.go @@ -9,6 +9,8 @@ import ( "strings" "github.com/gateway-fm/vectorized-poseidon-gold/src/vectorizedposeidongold" + "github.com/ledgerwatch/erigon/common" + zkutils "github.com/ledgerwatch/erigon/zk/utils" "github.com/ledgerwatch/log/v3" "github.com/pelletier/go-toml" "github.com/urfave/cli/v2" @@ -35,6 +37,11 @@ func main() { */ }() + cli.VersionPrinter = func(cCtx *cli.Context) { + version := zkutils.GetVersion() + fmt.Println(common.MakeName("cdk-erigon", version)) + } + app := erigonapp.MakeApp_zkEvm("cdk-erigon", runErigon, erigoncli.DefaultFlags) if err := app.Run(os.Args); err != nil { _, printErr := fmt.Fprintln(os.Stderr, err)