From 78745092911cf8b5b8d6f8cd9c2b540eaadeee35 Mon Sep 17 00:00:00 2001 From: Seblu Date: Mon, 27 Dec 2010 14:30:35 +0100 Subject: [PATCH] fix execute command from argline --- cccli/cli.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cccli/cli.py b/cccli/cli.py index 00d0869..01bc798 100644 --- a/cccli/cli.py +++ b/cccli/cli.py @@ -28,7 +28,7 @@ class Cli(object): self._settings = settings self.alias = Alias(settings.get("alias", "")) self.alias.load() - self._interactive = sys.stderr.isatty() and sys.stdin.isatty() + self.interactive = sys.stderr.isatty() and sys.stdin.isatty() self._prompt = "> " self._commands = args self.rpc = None @@ -41,9 +41,8 @@ class Cli(object): self._auth() # run parsing args if len(self._commands) > 0: - for c in self._commands: - self._parse_line(c) - elif self._interactive: + self._parse_line(" ".join(self._commands)) + elif self.interactive: self._interactive_parser() else: self._parser() -- GitLab