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):
|
class Command(BaseCommand):
|
||||||
"""Enable and disable debugging"""
|
"""Enable and disable debugging"""
|
||||||
usage = 'debug [on|off]'
|
usage = 'Usage: debug [on|off]'
|
||||||
def handle(self, state='', **options):
|
def handle(self, state='', **options):
|
||||||
if state == 'on':
|
if state == 'on':
|
||||||
deluge.log.setLoggerLevel("debug")
|
deluge.log.setLoggerLevel("debug")
|
||||||
|
|
|
@ -39,7 +39,8 @@ from deluge.ui.client import client
|
||||||
import deluge.component as component
|
import deluge.component as component
|
||||||
|
|
||||||
class Command(BaseCommand):
|
class Command(BaseCommand):
|
||||||
"Shutdown the deluge server."
|
"Shutdown the deluge server"
|
||||||
|
usage = "Usage: halt"
|
||||||
def handle(self, **options):
|
def handle(self, **options):
|
||||||
self.console = component.get("ConsoleUI")
|
self.console = component.get("ConsoleUI")
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,7 @@ from twisted.internet import reactor
|
||||||
class Command(BaseCommand):
|
class Command(BaseCommand):
|
||||||
"""Exit from the client."""
|
"""Exit from the client."""
|
||||||
aliases = ['exit']
|
aliases = ['exit']
|
||||||
|
interactive_only = True
|
||||||
def handle(self, *args, **options):
|
def handle(self, *args, **options):
|
||||||
if client.connected():
|
if client.connected():
|
||||||
def on_disconnect(result):
|
def on_disconnect(result):
|
||||||
|
|
Loading…
Reference in New Issue