Allow the 'help' command to be called when not connected to a daemon
This commit is contained in:
parent
b6dc72218d
commit
3179ff2060
@ -288,7 +288,7 @@ class ConsoleUI(component.Component):
|
|||||||
parser._print_help(f)
|
parser._print_help(f)
|
||||||
parser.print_help = print_help
|
parser.print_help = print_help
|
||||||
|
|
||||||
if not client.connected() and cmd not in ("connect", "quit"):
|
if not client.connected() and cmd not in ("help", "connect", "quit"):
|
||||||
self.write("{!error!}Not connected to a daemon, please use the connect command first.")
|
self.write("{!error!}Not connected to a daemon, please use the connect command first.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user