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/chaincmd.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/chaincmd.go')
-rw-r--r-- | cmd/geth/chaincmd.go | 51 |
1 files changed, 35 insertions, 16 deletions
diff --git a/cmd/geth/chaincmd.go b/cmd/geth/chaincmd.go index 7a9cf4ac2..19e723bfa 100644 --- a/cmd/geth/chaincmd.go +++ b/cmd/geth/chaincmd.go @@ -40,35 +40,54 @@ import ( var ( importCommand = cli.Command{ - Action: importChain, - Name: "import", - Usage: `import a blockchain file`, + Action: importChain, + Name: "import", + Usage: "Import a blockchain file", + ArgsUsage: "<filename>", + Category: "BLOCKCHAIN COMMANDS", + Description: ` +TODO: Please write this +`, } exportCommand = cli.Command{ - Action: exportChain, - Name: "export", - Usage: `export blockchain into file`, + Action: exportChain, + Name: "export", + Usage: "Export blockchain into file", + ArgsUsage: "<filename> [<blockNumFirst> <blockNumLast>]", + Category: "BLOCKCHAIN COMMANDS", Description: ` Requires a first argument of the file to write to. Optional second and third arguments control the first and last block to write. In this mode, the file will be appended if already existing. - `, +`, } upgradedbCommand = cli.Command{ - Action: upgradeDB, - Name: "upgradedb", - Usage: "upgrade chainblock database", + Action: upgradeDB, + Name: "upgradedb", + Usage: "Upgrade chainblock database", + ArgsUsage: " ", + Category: "BLOCKCHAIN COMMANDS", + Description: ` +TODO: Please write this +`, } removedbCommand = cli.Command{ - Action: removeDB, - Name: "removedb", - Usage: "Remove blockchain and state databases", + Action: removeDB, + Name: "removedb", + Usage: "Remove blockchain and state databases", + ArgsUsage: " ", + Category: "BLOCKCHAIN COMMANDS", + Description: ` +TODO: Please write this +`, } dumpCommand = cli.Command{ - Action: dump, - Name: "dump", - Usage: `dump a specific block from storage`, + Action: dump, + Name: "dump", + Usage: "Dump a specific block from storage", + ArgsUsage: "[<blockHash> | <blockNum>]...", + Category: "BLOCKCHAIN COMMANDS", Description: ` The arguments are interpreted as block numbers or hashes. Use "ethereum dump 0" to dump the genesis block. |