From 1cce30393b787fb5af836fe6e2a65157a93f6f5c Mon Sep 17 00:00:00 2001 From: Nick Lanham Date: Thu, 24 Feb 2011 13:24:45 +0100 Subject: [PATCH] add interactive field to commander so command -h will work --- deluge/ui/console/commander.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deluge/ui/console/commander.py b/deluge/ui/console/commander.py index 5af4bb908..5f3503049 100644 --- a/deluge/ui/console/commander.py +++ b/deluge/ui/console/commander.py @@ -45,9 +45,10 @@ import logging log = logging.getLogger(__name__) class Commander: - def __init__(self, cmds): + def __init__(self, cmds, interactive=False): self._commands = cmds self.console = component.get("ConsoleUI") + self.interactive = interactive def write(self,line): print(strip_colors(line))