aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/evm
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-09-05 20:09:45 +0800
committerGitHub <noreply@github.com>2016-09-05 20:09:45 +0800
commiteac390f28955d66f9152102058e0d85d972bc033 (patch)
tree39e8bbec7532fc8427a24563242a2d597a0a076b /cmd/evm
parent2c6be49d200a3fff660ad78aada3305f8a3e3b9a (diff)
parentde54273f51af47fa7c7a66e5edc4c9c6fb03b178 (diff)
downloadgo-tangerine-eac390f28955d66f9152102058e0d85d972bc033.tar
go-tangerine-eac390f28955d66f9152102058e0d85d972bc033.tar.gz
go-tangerine-eac390f28955d66f9152102058e0d85d972bc033.tar.bz2
go-tangerine-eac390f28955d66f9152102058e0d85d972bc033.tar.lz
go-tangerine-eac390f28955d66f9152102058e0d85d972bc033.tar.xz
go-tangerine-eac390f28955d66f9152102058e0d85d972bc033.tar.zst
go-tangerine-eac390f28955d66f9152102058e0d85d972bc033.zip
Merge pull request #2976 from fjl/utils-version
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,