tshow help switches when using help command without subsequent command. - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit e6965ef32c09794247bf04acb4601ce81b5443aa DIR parent c30561d808babb36e83ce98789ee53f536037534 HTML 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: M electrum | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- DIR diff --git a/electrum b/electrum t@@ -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)