aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth/misccmd.go
diff options
context:
space:
mode:
authorBas van Kervel <basvankervel@gmail.com>2017-05-03 18:30:58 +0800
committerBas van Kervel <basvankervel@gmail.com>2017-05-03 20:33:07 +0800
commit18e9cb1187fd53555082009cc4d50a782033acd4 (patch)
tree992d4b1f0c451364cb1100b7e7a1d9a86085aa21 /cmd/geth/misccmd.go
parent502a2bd69ffa1ff49a394740d904df64c85e3ade (diff)
downloaddexon-18e9cb1187fd53555082009cc4d50a782033acd4.tar.gz
dexon-18e9cb1187fd53555082009cc4d50a782033acd4.tar.zst
dexon-18e9cb1187fd53555082009cc4d50a782033acd4.zip
cmd/geth: reorganise misc commands/flags
Diffstat (limited to 'cmd/geth/misccmd.go')
-rw-r--r--cmd/geth/misccmd.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/geth/misccmd.go b/cmd/geth/misccmd.go
index cb7dc1673..62b93d65a 100644
--- a/cmd/geth/misccmd.go
+++ b/cmd/geth/misccmd.go
@@ -34,7 +34,7 @@ import (
var (
makedagCommand = cli.Command{
- Action: makedag,
+ Action: utils.MigrateFlags(makedag),
Name: "makedag",
Usage: "Generate ethash DAG (for testing)",
ArgsUsage: "<blockNum> <outputDir>",
@@ -47,7 +47,7 @@ Regular users do not need to execute it.
`,
}
versionCommand = cli.Command{
- Action: version,
+ Action: utils.MigrateFlags(version),
Name: "version",
Usage: "Print version numbers",
ArgsUsage: " ",
@@ -57,7 +57,7 @@ The output of this command is supposed to be machine-readable.
`,
}
licenseCommand = cli.Command{
- Action: license,
+ Action: utils.MigrateFlags(license),
Name: "license",
Usage: "Display license information",
ArgsUsage: " ",
@@ -103,7 +103,7 @@ func version(ctx *cli.Context) error {
}
fmt.Println("Architecture:", runtime.GOARCH)
fmt.Println("Protocol Versions:", eth.ProtocolVersions)
- fmt.Println("Network Id:", ctx.GlobalInt(utils.NetworkIdFlag.Name))
+ fmt.Println("Network Id:", eth.DefaultConfig.NetworkId)
fmt.Println("Go Version:", runtime.Version())
fmt.Println("Operating System:", runtime.GOOS)
fmt.Printf("GOPATH=%s\n", os.Getenv("GOPATH"))