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/accountcmd.go | |
parent | dba29970d7ff097762b637b5e7ff95fc1433856a (diff) | |
download | dexon-80ea44c485c42032aa954f2a8580e3afb4aa5339.tar.gz dexon-80ea44c485c42032aa954f2a8580e3afb4aa5339.tar.zst dexon-80ea44c485c42032aa954f2a8580e3afb4aa5339.zip |
cmd/geth: improve command help messages (#3227)
Diffstat (limited to 'cmd/geth/accountcmd.go')
-rw-r--r-- | cmd/geth/accountcmd.go | 91 |
1 files changed, 51 insertions, 40 deletions
diff --git a/cmd/geth/accountcmd.go b/cmd/geth/accountcmd.go index 2d70dcc2c..237af99eb 100644 --- a/cmd/geth/accountcmd.go +++ b/cmd/geth/accountcmd.go @@ -31,30 +31,37 @@ import ( var ( walletCommand = cli.Command{ - Name: "wallet", - Usage: "ethereum presale wallet", - Subcommands: []cli.Command{ - { - Action: importWallet, - Name: "import", - Usage: "import ethereum presale wallet", - }, - }, + Name: "wallet", + Usage: "Manage Ethereum presale wallets", + ArgsUsage: "", + Category: "ACCOUNT COMMANDS", Description: ` - - get wallet import /path/to/my/presale.wallet + geth wallet import /path/to/my/presale.wallet will prompt for your password and imports your ether presale account. It can be used non-interactively with the --password option taking a passwordfile as argument containing the wallet password in plaintext. -`} +`, + Subcommands: []cli.Command{ + { + Action: importWallet, + Name: "import", + Usage: "Import Ethereum presale wallet", + ArgsUsage: "<keyFile>", + Description: ` +TODO: Please write this +`, + }, + }, + } accountCommand = cli.Command{ - Action: accountList, - Name: "account", - Usage: "manage accounts", + Action: accountList, + Name: "account", + Usage: "Manage accounts", + ArgsUsage: "", + Category: "ACCOUNT COMMANDS", Description: ` - Manage accounts lets you create new accounts, list all existing accounts, import a private key into a new account. @@ -86,17 +93,21 @@ And finally. DO NOT FORGET YOUR PASSWORD. `, Subcommands: []cli.Command{ { - Action: accountList, - Name: "list", - Usage: "print account addresses", + Action: accountList, + Name: "list", + Usage: "Print account addresses", + ArgsUsage: " ", + Description: ` +TODO: Please write this +`, }, { - Action: accountCreate, - Name: "new", - Usage: "create a new account", + Action: accountCreate, + Name: "new", + Usage: "Create a new account", + ArgsUsage: " ", Description: ` - - ethereum account new + geth account new Creates a new account. Prints the address. @@ -106,19 +117,19 @@ You must remember this passphrase to unlock your account in the future. For non-interactive use the passphrase can be specified with the --password flag: - ethereum --password <passwordfile> account new + geth --password <passwordfile> account new Note, this is meant to be used for testing only, it is a bad idea to save your password to file or expose in any other way. - `, +`, }, { - Action: accountUpdate, - Name: "update", - Usage: "update an existing account", + Action: accountUpdate, + Name: "update", + Usage: "Update an existing account", + ArgsUsage: "<address>", Description: ` - - ethereum account update <address> + geth account update <address> Update an existing account. @@ -130,19 +141,19 @@ format to the newest format or change the password for an account. For non-interactive use the passphrase can be specified with the --password flag: - ethereum --password <passwordfile> account update <address> + geth --password <passwordfile> account update <address> Since only one password can be given, only format update can be performed, changing your password is only possible interactively. - `, +`, }, { - Action: accountImport, - Name: "import", - Usage: "import a private key into a new account", + Action: accountImport, + Name: "import", + Usage: "Import a private key into a new account", + ArgsUsage: "<keyFile>", Description: ` - - ethereum account import <keyfile> + geth account import <keyfile> Imports an unencrypted private key from <keyfile> and creates a new account. Prints the address. @@ -155,13 +166,13 @@ You must remember this passphrase to unlock your account in the future. For non-interactive use the passphrase can be specified with the -password flag: - ethereum --password <passwordfile> account import <keyfile> + geth --password <passwordfile> account import <keyfile> Note: As you can directly copy your encrypted accounts to another ethereum instance, this import mechanism is not needed when you transfer an account between nodes. - `, +`, }, }, } |