Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
18e9cb11
Unverified
Commit
18e9cb11
authored
May 03, 2017
by
Bas van Kervel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd/geth: reorganise misc commands/flags
parent
502a2bd6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
misccmd.go
cmd/geth/misccmd.go
+4
-4
No files found.
cmd/geth/misccmd.go
View file @
18e9cb11
...
...
@@ -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"
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment