aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth/chaincmd.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/chaincmd.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/chaincmd.go')
-rw-r--r--cmd/geth/chaincmd.go51
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.