mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-12 04:24:27 +00:00
add interactive field to commander so command -h will work
This commit is contained in:
parent
510c81776f
commit
1cce30393b
@ -45,9 +45,10 @@ import logging
|
|||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
class Commander:
|
class Commander:
|
||||||
def __init__(self, cmds):
|
def __init__(self, cmds, interactive=False):
|
||||||
self._commands = cmds
|
self._commands = cmds
|
||||||
self.console = component.get("ConsoleUI")
|
self.console = component.get("ConsoleUI")
|
||||||
|
self.interactive = interactive
|
||||||
|
|
||||||
def write(self,line):
|
def write(self,line):
|
||||||
print(strip_colors(line))
|
print(strip_colors(line))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user