Commit 78745092 authored by Seblu's avatar Seblu
Browse files

fix execute command from argline

parent 3ae715ec
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -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()