From 6b727c0440f79d12ba38f6c21f50d33b84aeaa83 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Mon, 5 Sep 2016 13:08:41 +0200 Subject: cmd/evm, cmd/geth, cmd/utils: move version handling to cmd/utils --- cmd/evm/main.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cmd/evm') diff --git a/cmd/evm/main.go b/cmd/evm/main.go index 09cc9ee1f..3f44e0f3c 100644 --- a/cmd/evm/main.go +++ b/cmd/evm/main.go @@ -35,8 +35,11 @@ import ( "gopkg.in/urfave/cli.v1" ) +var gitCommit = "" // Git SHA1 commit hash of the release (set via linker flags) + var ( - app *cli.App + app = utils.NewApp(gitCommit, "the evm command line interface") + DebugFlag = cli.BoolFlag{ Name: "debug", Usage: "output full trace logs", @@ -91,7 +94,6 @@ var ( ) func init() { - app = utils.NewApp("0.2", "the evm command line interface") app.Flags = []cli.Flag{ CreateFlag, DebugFlag, -- cgit v1.2.3