From abbc3b98db871cec6e1bc4d6cc1f4236aa6f6ca8 Mon Sep 17 00:00:00 2001 From: Benny Malengier Date: Sun, 23 Jan 2011 21:29:31 +0000 Subject: [PATCH] Allow easy experimenting with QML svn: r16448 --- src/cli/argparser.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cli/argparser.py b/src/cli/argparser.py index 5371f1ca7..2d99a823c 100644 --- a/src/cli/argparser.py +++ b/src/cli/argparser.py @@ -321,6 +321,8 @@ class ArgParser(object): self.force_unlock = True elif option in ('--usage'): self.usage = True + elif option in ('--qml'): + self.runqml = True #clean options list cleandbg.reverse() @@ -328,7 +330,7 @@ class ArgParser(object): del options[ind] if len(options) > 0 and self.open is None and self.imports == [] \ - and not (self.list or self.list_more or self.help): + and not (self.list or self.list_more or self.help or self.runqml): # Extract and convert to unicode the arguments in the list. # The % operator replaces the list elements with repr() of the list elemements # which is OK for latin characters, but not for non latin characters in list elements