Skip to content

Commit e6965ef

Browse files
committed
show help switches when using help command without subsequent command.
1 parent c30561d commit e6965ef

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

electrum

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,11 @@ if __name__ == '__main__':
284284
except BaseException, e:
285285
print_error("Error: Keypair import failed: " + str(e))
286286

287-
if cmd=='help':
287+
if cmd == 'help':
288288
cmd2 = firstarg
289289
if cmd2 not in known_commands:
290-
print_error("Error: Command not found.")
290+
parser.print_help()
291+
print
291292
print "Type 'electrum help <command>' to see the help for a specific command"
292293
print "Type 'electrum --help' to see the list of options"
293294
print "List of commands:", ', '.join(known_commands)

0 commit comments

Comments
 (0)