From ab1ac30ca26c2550d375b126491ad527ad60349b Mon Sep 17 00:00:00 2001 From: Terry Howe Date: Thu, 20 Feb 2014 15:29:58 -0700 Subject: Fix interactive mode with command line args The cmdloop in cmd2 looks for a --test option in the parsed arguments which doesn't work if you want to pass other arguments in interactive mode. If any other arguments are passed in, an exception is thrown. Change-Id: Iacd3d338dce74f4de9eaf5c9c8ad8ac9f9ae32e3 Closes-Bug: #1103218 --- cliff/interactive.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cliff/interactive.py b/cliff/interactive.py index 619c4a2..e1bd930 100644 --- a/cliff/interactive.py +++ b/cliff/interactive.py @@ -113,3 +113,6 @@ class InteractiveApp(cmd2.Cmd): statement.parsed.command = cmd_name statement.parsed.args = ' '.join(sub_argv) return statement + + def cmdloop(self): + self._cmdloop() -- cgit v1.2.1