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
23c8c741
Commit
23c8c741
authored
Nov 26, 2019
by
zaccoding
Committed by
Martin Holst Swende
Nov 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmd: fix command help messages in modules (#20203)
parent
06763201
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
28 deletions
+16
-28
main.go
cmd/abigen/main.go
+1
-14
main.go
cmd/checkpoint-admin/main.go
+1
-14
main.go
cmd/clef/main.go
+1
-0
main.go
cmd/ethkey/main.go
+1
-0
main.go
cmd/evm/main.go
+1
-0
flags.go
cmd/utils/flags.go
+11
-0
No files found.
cmd/abigen/main.go
View file @
23c8c741
...
...
@@ -32,19 +32,6 @@ import (
"gopkg.in/urfave/cli.v1"
)
const
(
commandHelperTemplate
=
`{{.Name}}{{if .Subcommands}} command{{end}}{{if .Flags}} [command options]{{end}} [arguments...]
{{if .Description}}{{.Description}}
{{end}}{{if .Subcommands}}
SUBCOMMANDS:
{{range .Subcommands}}{{.Name}}{{with .ShortName}}, {{.}}{{end}}{{ "\t" }}{{.Usage}}
{{end}}{{end}}{{if .Flags}}
OPTIONS:
{{range $.Flags}}{{"\t"}}{{.}}
{{end}}
{{end}}`
)
var
(
// Git SHA1 commit hash of the release (set via linker flags)
gitCommit
=
""
...
...
@@ -128,7 +115,7 @@ func init() {
aliasFlag
,
}
app
.
Action
=
utils
.
MigrateFlags
(
abigen
)
cli
.
CommandHelpTemplate
=
commandHelper
Template
cli
.
CommandHelpTemplate
=
utils
.
OriginCommandHelp
Template
}
func
abigen
(
c
*
cli
.
Context
)
error
{
...
...
cmd/checkpoint-admin/main.go
View file @
23c8c741
...
...
@@ -28,19 +28,6 @@ import (
"gopkg.in/urfave/cli.v1"
)
const
(
commandHelperTemplate
=
`{{.Name}}{{if .Subcommands}} command{{end}}{{if .Flags}} [command options]{{end}} [arguments...]
{{if .Description}}{{.Description}}
{{end}}{{if .Subcommands}}
SUBCOMMANDS:
{{range .Subcommands}}{{.Name}}{{with .ShortName}}, {{.}}{{end}}{{ "\t" }}{{.Usage}}
{{end}}{{end}}{{if .Flags}}
OPTIONS:
{{range $.Flags}}{{"\t"}}{{.}}
{{end}}
{{end}}`
)
var
(
// Git SHA1 commit hash of the release (set via linker flags)
gitCommit
=
""
...
...
@@ -61,7 +48,7 @@ func init() {
oracleFlag
,
nodeURLFlag
,
}
cli
.
CommandHelpTemplate
=
commandHelper
Template
cli
.
CommandHelpTemplate
=
utils
.
OriginCommandHelp
Template
}
// Commonly used command line flags.
...
...
cmd/clef/main.go
View file @
23c8c741
...
...
@@ -223,6 +223,7 @@ func init() {
}
app
.
Action
=
signer
app
.
Commands
=
[]
cli
.
Command
{
initCommand
,
attestCommand
,
setCredentialCommand
,
delCredentialCommand
,
gendocCommand
}
cli
.
CommandHelpTemplate
=
utils
.
OriginCommandHelpTemplate
}
func
main
()
{
...
...
cmd/ethkey/main.go
View file @
23c8c741
...
...
@@ -43,6 +43,7 @@ func init() {
commandSignMessage
,
commandVerifyMessage
,
}
cli
.
CommandHelpTemplate
=
utils
.
OriginCommandHelpTemplate
}
// Commonly used command line flags.
...
...
cmd/evm/main.go
View file @
23c8c741
...
...
@@ -152,6 +152,7 @@ func init() {
runCommand
,
stateTestCommand
,
}
cli
.
CommandHelpTemplate
=
utils
.
OriginCommandHelpTemplate
}
func
main
()
{
...
...
cmd/utils/flags.go
View file @
23c8c741
...
...
@@ -77,6 +77,17 @@ SUBCOMMANDS:
{{range $categorized.Flags}}{{"\t"}}{{.}}
{{end}}
{{end}}{{end}}`
OriginCommandHelpTemplate
=
`{{.Name}}{{if .Subcommands}} command{{end}}{{if .Flags}} [command options]{{end}} [arguments...]
{{if .Description}}{{.Description}}
{{end}}{{if .Subcommands}}
SUBCOMMANDS:
{{range .Subcommands}}{{.Name}}{{with .ShortName}}, {{.}}{{end}}{{ "\t" }}{{.Usage}}
{{end}}{{end}}{{if .Flags}}
OPTIONS:
{{range $.Flags}}{{"\t"}}{{.}}
{{end}}
{{end}}`
)
func
init
()
{
...
...
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