Minor changes for command line usage

This commit is contained in:
Nick 2011-02-17 16:03:11 +01:00
parent 837322478b
commit 1789e8d03c
3 changed files with 4 additions and 2 deletions

View File

@ -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")

View File

@ -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")

View File

@ -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):