electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit e6965ef32c09794247bf04acb4601ce81b5443aa
parent c30561d808babb36e83ce98789ee53f536037534
Author: Amir Taaki <genjix@riseup.net>
Date:   Tue, 17 Jul 2012 22:50:20 +0200

show help switches when using help command without subsequent command.

Diffstat:
Melectrum | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/electrum b/electrum @@ -284,10 +284,11 @@ if __name__ == '__main__': except BaseException, e: print_error("Error: Keypair import failed: " + str(e)) - if cmd=='help': + if cmd == 'help': cmd2 = firstarg if cmd2 not in known_commands: - print_error("Error: Command not found.") + parser.print_help() + print 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)