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.add_option("-g", "--gui", dest="gui", default="qt", help="gui")
parser.add_option("-w", "--wallet", dest="wallet_path", help="wallet path (default: electrum.dat)")
if cmd=='help':
cmd2 = firstarg
if cmd2 not in known_commands:
- print "known commands:", ', '.join(known_commands)
- print "'electrum help <command>' shows the help on a specific command"
- print "'electrum --help' shows the list of options"
+ print "type 'electrum help <command>' to see the help for a specific command"
+ print "type 'electrum --help' to see the list of options"
+ print "list of commands:", ', '.join(known_commands)
elif cmd2 == 'balance':
print "Display the balance of your wallet or of an address."
print "syntax: balance [<address>]"
elif cmd == 'deseed':
if not wallet.seed:
- print "Eooro: This wallet has no seed"
+ print "Error: This wallet has no seed"
elif wallet.use_encryption:
print "Error: This wallet is encrypted"
else: