aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2015-03-08 23:50:27 +0800
committerzelig <viktor.tron@gmail.com>2015-03-08 23:50:27 +0800
commit41a89e18f68f4b12b8212544be01a4e0a6716976 (patch)
tree4d20c847371cc9590bc16c2751a0fbd748a2cbf6 /cmd
parent51eed7964ec35bbdc23dd8a4a8fffedad247e33d (diff)
downloaddexon-41a89e18f68f4b12b8212544be01a4e0a6716976.tar
dexon-41a89e18f68f4b12b8212544be01a4e0a6716976.tar.gz
dexon-41a89e18f68f4b12b8212544be01a4e0a6716976.tar.bz2
dexon-41a89e18f68f4b12b8212544be01a4e0a6716976.tar.lz
dexon-41a89e18f68f4b12b8212544be01a4e0a6716976.tar.xz
dexon-41a89e18f68f4b12b8212544be01a4e0a6716976.tar.zst
dexon-41a89e18f68f4b12b8212544be01a4e0a6716976.zip
version output
- make version output more verbose - include NetworkId - go version and os not displayed like env vars (confusing)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/ethereum/main.go12
1 files changed, 7 insertions, 5 deletions
diff --git a/cmd/ethereum/main.go b/cmd/ethereum/main.go
index f3f428156..12e205f37 100644
--- a/cmd/ethereum/main.go
+++ b/cmd/ethereum/main.go
@@ -228,11 +228,13 @@ func hashish(x string) bool {
}
func version(c *cli.Context) {
- fmt.Printf(`%v %v
-PV=%d
-GOOS=%s
-GO=%s
+ fmt.Printf(`%v
+Version: %v
+Protocol Version: %d
+Network Id: %d
+GO: %s
+OS: %s
GOPATH=%s
GOROOT=%s
-`, ClientIdentifier, Version, eth.ProtocolVersion, runtime.GOOS, runtime.Version(), os.Getenv("GOPATH"), runtime.GOROOT())
+`, ClientIdentifier, Version, eth.ProtocolVersion, eth.NetworkId, runtime.Version(), runtime.GOOS, os.Getenv("GOPATH"), runtime.GOROOT())
}