diff options
author | Kenji Siu <kenji@isuntv.com> | 2016-11-10 19:00:09 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-11-10 19:00:09 +0800 |
commit | 80ea44c485c42032aa954f2a8580e3afb4aa5339 (patch) | |
tree | 91fa1e5c5ecfdcb35dba80a17458a1e50d97b96a /cmd/geth/consolecmd.go | |
parent | dba29970d7ff097762b637b5e7ff95fc1433856a (diff) | |
download | dexon-80ea44c485c42032aa954f2a8580e3afb4aa5339.tar dexon-80ea44c485c42032aa954f2a8580e3afb4aa5339.tar.gz dexon-80ea44c485c42032aa954f2a8580e3afb4aa5339.tar.bz2 dexon-80ea44c485c42032aa954f2a8580e3afb4aa5339.tar.lz dexon-80ea44c485c42032aa954f2a8580e3afb4aa5339.tar.xz dexon-80ea44c485c42032aa954f2a8580e3afb4aa5339.tar.zst dexon-80ea44c485c42032aa954f2a8580e3afb4aa5339.zip |
cmd/geth: improve command help messages (#3227)
Diffstat (limited to 'cmd/geth/consolecmd.go')
-rw-r--r-- | cmd/geth/consolecmd.go | 26 |
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 |