add interactive field to commander so command -h will work

This commit is contained in:
Nick Lanham 2011-02-24 13:24:45 +01:00
parent 510c81776f
commit 1cce30393b
1 changed files with 2 additions and 1 deletions

View File

@ -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))