Minor changes for command line usage
This commit is contained in:
parent
837322478b
commit
1789e8d03c
|
@ -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")
|
||||
|
|
|
@ -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")
|
||||
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue