aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/evm
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-09-05 19:08:41 +0800
committerFelix Lange <fjl@twurst.com>2016-09-05 19:24:11 +0800
commit6b727c0440f79d12ba38f6c21f50d33b84aeaa83 (patch)
tree35c813b93218b19847e6d9e7e588377daad2c9a7 /cmd/evm
parent2c6be49d200a3fff660ad78aada3305f8a3e3b9a (diff)
downloaddexon-6b727c0440f79d12ba38f6c21f50d33b84aeaa83.tar
dexon-6b727c0440f79d12ba38f6c21f50d33b84aeaa83.tar.gz
dexon-6b727c0440f79d12ba38f6c21f50d33b84aeaa83.tar.bz2
dexon-6b727c0440f79d12ba38f6c21f50d33b84aeaa83.tar.lz
dexon-6b727c0440f79d12ba38f6c21f50d33b84aeaa83.tar.xz
dexon-6b727c0440f79d12ba38f6c21f50d33b84aeaa83.tar.zst
dexon-6b727c0440f79d12ba38f6c21f50d33b84aeaa83.zip
cmd/evm, cmd/geth, cmd/utils: move version handling to cmd/utils
Diffstat (limited to 'cmd/evm')
-rw-r--r--cmd/evm/main.go6
1 files changed, 4 insertions, 2 deletions
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,