Author: andar

Revision: 5916

Log:
        Allow the 'help' command to be called when not connected to a daemon

Diff:
Modified: branches/1.2_RC/deluge/ui/console/main.py
===================================================================
--- branches/1.2_RC/deluge/ui/console/main.py   2009-11-03 14:48:24 UTC (rev 
5915)
+++ branches/1.2_RC/deluge/ui/console/main.py   2009-11-03 22:08:18 UTC (rev 
5916)
@@ -288,7 +288,7 @@
                 parser._print_help(f)
         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.")
             return
 

Modified: trunk/deluge/ui/console/main.py
===================================================================
--- trunk/deluge/ui/console/main.py     2009-11-03 14:48:24 UTC (rev 5915)
+++ trunk/deluge/ui/console/main.py     2009-11-03 22:08:18 UTC (rev 5916)
@@ -288,7 +288,7 @@
                 parser._print_help(f)
         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.")
             return
 



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to