Browse Source

better messages

283
thomasv 13 years ago
parent
commit
04d78a3bf4
  1. 10
      electrum

10
electrum

@ -43,7 +43,7 @@ protected_commands = ['payto', 'password', 'mktx', 'seed', 'import','signmessage
if __name__ == '__main__': if __name__ == '__main__':
usage = "usage: %prog [options] command args\nCommands: "+ (', '.join(known_commands)) usage = "usage: %prog [options] command\nCommands: "+ (', '.join(known_commands))
parser = OptionParser(usage=usage) parser = OptionParser(usage=usage)
parser.add_option("-g", "--gui", dest="gui", default="qt", help="gui") parser.add_option("-g", "--gui", dest="gui", default="qt", help="gui")
parser.add_option("-w", "--wallet", dest="wallet_path", help="wallet path (default: electrum.dat)") parser.add_option("-w", "--wallet", dest="wallet_path", help="wallet path (default: electrum.dat)")
@ -223,9 +223,9 @@ if __name__ == '__main__':
if cmd=='help': if cmd=='help':
cmd2 = firstarg cmd2 = firstarg
if cmd2 not in known_commands: if cmd2 not in known_commands:
print "known commands:", ', '.join(known_commands) print "type 'electrum help <command>' to see the help for a specific command"
print "'electrum help <command>' shows the help on a specific command" print "type 'electrum --help' to see the list of options"
print "'electrum --help' shows the list of options" print "list of commands:", ', '.join(known_commands)
elif cmd2 == 'balance': elif cmd2 == 'balance':
print "Display the balance of your wallet or of an address." print "Display the balance of your wallet or of an address."
print "syntax: balance [<address>]" print "syntax: balance [<address>]"
@ -274,7 +274,7 @@ if __name__ == '__main__':
elif cmd == 'deseed': elif cmd == 'deseed':
if not wallet.seed: if not wallet.seed:
print "Eooro: This wallet has no seed" print "Error: This wallet has no seed"
elif wallet.use_encryption: elif wallet.use_encryption:
print "Error: This wallet is encrypted" print "Error: This wallet is encrypted"
else: else:

Loading…
Cancel
Save