Module: deluge
Branch: master
Commit: 1789e8d03cec2a395605153cafaeb4bcb5f5ff1c

Author: Nick <[email protected]>
Date:   Thu Feb 17 16:03:11 2011 +0100

Minor changes for command line usage

---

 deluge/ui/console/commands/debug.py |    2 +-
 deluge/ui/console/commands/halt.py  |    3 ++-
 deluge/ui/console/commands/quit.py  |    1 +
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/deluge/ui/console/commands/debug.py 
b/deluge/ui/console/commands/debug.py
index 118f954..40e87ed 100644
--- a/deluge/ui/console/commands/debug.py
+++ b/deluge/ui/console/commands/debug.py
@@ -44,7 +44,7 @@ import deluge.component as component
 
 class Command(BaseCommand):
     """Enable and disable debugging"""
-    usage = 'debug [on|off]'
+    usage = 'Usage: debug [on|off]'
     def handle(self, state='', **options):
         if state == 'on':
             deluge.log.setLoggerLevel("debug")
diff --git a/deluge/ui/console/commands/halt.py 
b/deluge/ui/console/commands/halt.py
index 0a4de27..1c239de 100644
--- a/deluge/ui/console/commands/halt.py
+++ b/deluge/ui/console/commands/halt.py
@@ -39,7 +39,8 @@ from deluge.ui.client import client
 import deluge.component as component
 
 class Command(BaseCommand):
-    "Shutdown the deluge server."
+    "Shutdown the deluge server"
+    usage = "Usage: halt"
     def handle(self, **options):
         self.console = component.get("ConsoleUI")
 
diff --git a/deluge/ui/console/commands/quit.py 
b/deluge/ui/console/commands/quit.py
index f0e2fae..1c95f94 100644
--- a/deluge/ui/console/commands/quit.py
+++ b/deluge/ui/console/commands/quit.py
@@ -40,6 +40,7 @@ from twisted.internet import reactor
 class Command(BaseCommand):
     """Exit from the client."""
     aliases = ['exit']
+    interactive_only = True
     def handle(self, *args, **options):
         if client.connected():
             def on_disconnect(result):

-- 
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