Added some more information for certain help commands also rewrote some of them to be more like the others
This commit is contained in:
parent
37af22cc6f
commit
d3c7781803
51
electrum
51
electrum
|
@ -39,50 +39,49 @@ from optparse import OptionParser
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
|
|
||||||
known_commands = {
|
known_commands = {
|
||||||
'help':'print help',
|
'help':'Prints this help',
|
||||||
'validateaddress':'check that the address is valid',
|
'validateaddress':'Check that the address is valid',
|
||||||
'balance': "Display the balance of your wallet or of an address.\nsyntax: balance [<address>]",
|
'balance': "Display the balance of your wallet or of an address.\nSyntax: balance [<address>]",
|
||||||
'contacts': "Show your list of contacts",
|
'contacts': "Show your list of contacts",
|
||||||
'create':'create wallet',
|
'create':'Create a wallet',
|
||||||
'restore':'restore wallet',
|
'restore':'Restore a wallet',
|
||||||
'payto':"""
|
'payto':"""Create and broadcast a transaction.
|
||||||
payto <recipient> <amount> [label]
|
Syntax: payto <recipient> <amount> [label]
|
||||||
create and broadcast a transaction.
|
<recipient> can be a bitcoin address or a label
|
||||||
<recipient> can be a bitcoin address or a label
|
options:\n --fee, -f: set transaction fee\n --fromaddr, -s: send from address -\n --changeaddr, -c: send change to address
|
||||||
options:\n--fee, -f: set transaction fee\n--fromaddr, -s: send from address -\n--changeaddr, -c: send change to address
|
|
||||||
""",
|
""",
|
||||||
'sendtx':
|
'sendtx':
|
||||||
"""sendtx <tx>
|
'Broadcasts a transaction to the network. \nSyntax: sendtx <tx>\n<tx> must be in hexadecimal.',
|
||||||
broadcast a transaction to the network. <tx> must be in hexadecimal""",
|
|
||||||
'password':
|
'password':
|
||||||
"change your password",
|
"Changes your password",
|
||||||
'addresses':
|
'addresses':
|
||||||
"""show your list of addresses.
|
"""Shows your list of addresses.
|
||||||
options:
|
options:
|
||||||
-a: show all addresses, including change addresses
|
-a: show all addresses, including change addresses
|
||||||
-k: show private keys
|
-k: show private keys
|
||||||
-b: show the balance of addresses""",
|
-b: show the balance of addresses""",
|
||||||
'history':"show the transaction history",
|
|
||||||
'label':"assign a label to an item",
|
'history':"Shows the transaction history",
|
||||||
|
'label':'Assign a label to an item\nSyntax: label <tx_hash> <label>',
|
||||||
'mktx':
|
'mktx':
|
||||||
"""create a signed transaction. password protected
|
"""Create a signed transaction, password protected.
|
||||||
syntax: mktx <recipient> <amount> [label]
|
Syntax: mktx <recipient> <amount> [label]
|
||||||
options:\n--fee, -f: set transaction fee\n--fromaddr, -s: send from address -\n--changeaddr, -c: send change to address
|
options:\n --fee, -f: set transaction fee\n --fromaddr, -s: send from address -\n --changeaddr, -c: send change to address
|
||||||
""",
|
""",
|
||||||
'seed':
|
'seed':
|
||||||
"print the generation seed of your wallet.",
|
"Print the generation seed of your wallet.",
|
||||||
'import':
|
'import':
|
||||||
"import key pair",
|
'Imports a key pair\nSyntax: import <address>:<privatekey>',
|
||||||
'signmessage':
|
'signmessage':
|
||||||
'sign a message with a key',
|
'Signs a message with a key\nSyntax: signmessage <address> <message>',
|
||||||
'verifymessage':
|
'verifymessage':
|
||||||
'verify signature',
|
'Verifies a signature\nSyntax: verifymessage <address> <signature> <message>',
|
||||||
'eval':
|
'eval':
|
||||||
"Run python eval() on an object\nSyntax: eval <expression>\nExample: eval \"wallet.aliases\"",
|
"Run python eval() on an object\nSyntax: eval <expression>\nExample: eval \"wallet.aliases\"",
|
||||||
'deseed':
|
'deseed':
|
||||||
"remove seed from the wallet. The seed is stored in a file that has the name of the wallet plus '.seed'",
|
"Remove seed from the wallet. The seed is stored in a file that has the name of the wallet plus '.seed'",
|
||||||
'reseed':
|
'reseed':
|
||||||
"restore seed of the wallet. The wallet must have no seed, and the seed must match the wallet's master public key.",
|
"Restore seed of the wallet. The wallet must have no seed, and the seed must match the wallet's master public key.",
|
||||||
'freeze':'',
|
'freeze':'',
|
||||||
'unfreeze':'',
|
'unfreeze':'',
|
||||||
'prioritize':'',
|
'prioritize':'',
|
||||||
|
|
Loading…
Reference in New Issue