Allow easy experimenting with QML

svn: r16448
This commit is contained in:
Benny Malengier 2011-01-23 21:29:31 +00:00
parent 18bb7615c3
commit abbc3b98db

View File

@ -321,6 +321,8 @@ class ArgParser(object):
self.force_unlock = True self.force_unlock = True
elif option in ('--usage'): elif option in ('--usage'):
self.usage = True self.usage = True
elif option in ('--qml'):
self.runqml = True
#clean options list #clean options list
cleandbg.reverse() cleandbg.reverse()
@ -328,7 +330,7 @@ class ArgParser(object):
del options[ind] del options[ind]
if len(options) > 0 and self.open is None and self.imports == [] \ 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. # Extract and convert to unicode the arguments in the list.
# The % operator replaces the list elements with repr() of the list elemements # 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 # which is OK for latin characters, but not for non latin characters in list elements