Module: deluge Branch: master Commit: 1cce30393b787fb5af836fe6e2a65157a93f6f5c
Author: Nick Lanham <[email protected]> Date: Thu Feb 24 13:24:45 2011 +0100 add interactive field to commander so command -h will work --- deluge/ui/console/commander.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/deluge/ui/console/commander.py b/deluge/ui/console/commander.py index 5af4bb9..5f35030 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)) -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.
