From 1e91c0f254965f0a54845d8c10378894b5ad79a5 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Mon, 30 Jun 2014 18:32:00 +0200 Subject: [PATCH] fix #744 --- electrum | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/electrum b/electrum index 146ef3a..1e4acec 100755 --- a/electrum +++ b/electrum @@ -95,12 +95,14 @@ def print_help(parser): parser.print_help() print_msg("Type 'electrum help ' to see the help for a specific command") print_msg("Type 'electrum --help' to see the list of options") - #run_command(known_commands['help']) - sys.exit(1) + run_command(known_commands['help']) def print_help_cb(self, opt, value, parser): print_help(parser) + sys.exit(1) + + def run_command(cmd, password=None, args=None): @@ -145,6 +147,7 @@ def run_command(cmd, password=None, args=None): if __name__ == '__main__': + wallet = None parser = arg_parser() options, args = parser.parse_args() if options.portable and options.wallet_path is None: @@ -363,6 +366,7 @@ if __name__ == '__main__': elif cmd.name == 'help': if len(args) < 2: print_help(parser) + sys.exit(1) # check the number of arguments if len(args) - 1 < cmd.min_args: -- 1.7.1