aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth/consolecmd.go
diff options
context:
space:
mode:
authorKenji Siu <kenji@isuntv.com>2016-11-10 19:00:09 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-11-10 19:00:09 +0800
commit80ea44c485c42032aa954f2a8580e3afb4aa5339 (patch)
tree91fa1e5c5ecfdcb35dba80a17458a1e50d97b96a /cmd/geth/consolecmd.go
parentdba29970d7ff097762b637b5e7ff95fc1433856a (diff)
downloadgo-tangerine-80ea44c485c42032aa954f2a8580e3afb4aa5339.tar.gz
go-tangerine-80ea44c485c42032aa954f2a8580e3afb4aa5339.tar.zst
go-tangerine-80ea44c485c42032aa954f2a8580e3afb4aa5339.zip
cmd/geth: improve command help messages (#3227)
Diffstat (limited to 'cmd/geth/consolecmd.go')
-rw-r--r--cmd/geth/consolecmd.go26
1 files changed, 16 insertions, 10 deletions
diff --git a/cmd/geth/consolecmd.go b/cmd/geth/consolecmd.go
index 066247303..b1c435e00 100644
--- a/cmd/geth/consolecmd.go
+++ b/cmd/geth/consolecmd.go
@@ -30,9 +30,11 @@ import (
var (
consoleCommand = cli.Command{
- Action: localConsole,
- Name: "console",
- Usage: `Geth Console: interactive JavaScript environment`,
+ Action: localConsole,
+ Name: "console",
+ Usage: "Start an interactive JavaScript environment",
+ ArgsUsage: "", // TODO: Write this!
+ Category: "CONSOLE COMMANDS",
Description: `
The Geth console is an interactive shell for the JavaScript runtime environment
which exposes a node admin interface as well as the Ðapp JavaScript API.
@@ -40,20 +42,24 @@ See https://github.com/ethereum/go-ethereum/wiki/Javascipt-Console
`,
}
attachCommand = cli.Command{
- Action: remoteConsole,
- Name: "attach",
- Usage: `Geth Console: interactive JavaScript environment (connect to node)`,
+ Action: remoteConsole,
+ Name: "attach",
+ Usage: "Start an interactive JavaScript environment (connect to node)",
+ ArgsUsage: "", // TODO: Write this!
+ Category: "CONSOLE COMMANDS",
Description: `
The Geth console is an interactive shell for the JavaScript runtime environment
which exposes a node admin interface as well as the Ðapp JavaScript API.
See https://github.com/ethereum/go-ethereum/wiki/Javascipt-Console.
This command allows to open a console on a running geth node.
- `,
+`,
}
javascriptCommand = cli.Command{
- Action: ephemeralConsole,
- Name: "js",
- Usage: `executes the given JavaScript files in the Geth JavaScript VM`,
+ Action: ephemeralConsole,
+ Name: "js",
+ Usage: "Execute the specified JavaScript files",
+ ArgsUsage: "", // TODO: Write this!
+ Category: "CONSOLE COMMANDS",
Description: `
The JavaScript VM exposes a node admin interface as well as the Ðapp
JavaScript API. See https://github.com/ethereum/go-ethereum/wiki/Javascipt-Console