cmd/evm, cmd/geth, cmd/utils: move version handling to cmd/utils

This commit is contained in:
Felix Lange
2016-09-05 13:08:41 +02:00
parent 2c6be49d20
commit 6b727c0440
6 changed files with 121 additions and 76 deletions

View File

@ -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,