summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTerry Howe <terrylhowe@gmail.com>2014-02-20 15:29:58 -0700
committerTerry Howe <terrylhowe@gmail.com>2014-02-20 15:35:56 -0700
commitab1ac30ca26c2550d375b126491ad527ad60349b (patch)
treee7625228777abebdc294313b6e0b5d14b02ef350
parent38e5780d2673bd4a7be702ef787b68876cc6e4dc (diff)
downloadcliff-ab1ac30ca26c2550d375b126491ad527ad60349b.tar.gz
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
-rw-r--r--cliff/interactive.py3
1 files changed, 3 insertions, 0 deletions
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()