Browse Source

new command: 'get'

283
ThomasV 13 years ago
parent
commit
1117741e59
  1. 10
      electrum

10
electrum

@ -82,8 +82,10 @@ options:\n --fee, -f: set transaction fee\n --fromaddr, -s: send from address
'Verifies a signature\nSyntax: verifymessage <address> <signature> <message>\nIf you want to lead or end a message with spaces, or want double spaces inside the message make sure you quote the string. I.e. " Hello This is a weird String "',
'eval':
"Run python eval() on an object\nSyntax: eval <expression>\nExample: eval \"wallet.aliases\"",
'get':
"Get config parameter.",
'set':
"Set wallet parameter. (gui)",
"Set config parameter.",
'deseed':
"Remove seed from the wallet. The seed is stored in a file that has the name of the wallet plus '.seed'",
'reseed':
@ -100,7 +102,7 @@ offline_commands = [ 'password', 'mktx',
'label', 'contacts',
'help', 'validateaddress',
'signmessage', 'verifymessage',
'eval', 'set', 'create', 'addresses',
'eval', 'set', 'get', 'create', 'addresses',
'import', 'seed',
'deseed','reseed',
'freeze','unfreeze',
@ -438,6 +440,10 @@ if __name__ == '__main__':
print eval(args[1])
wallet.save()
elif cmd == 'get':
key = args[1]
print wallet.config.get(key)
elif cmd == 'set':
key, value = args[1:3]
if key not in ['seed_version', 'master_public_key', 'use_encryption']:

Loading…
Cancel
Save