show help switches when using help command without subsequent command.
This commit is contained in:
parent
c30561d808
commit
e6965ef32c
5
electrum
5
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)
|
||||
|
|
Loading…
Reference in New Issue