Use double dashes for --qt-arg/--qt-flag

Qt seems to not care about -style vs --style, but this way we can also pass
stuff to Chromium.
This commit is contained in:
Florian Bruhin 2017-02-27 13:33:12 +01:00
parent c59b6bf02b
commit 94cabdb840

View File

@ -141,11 +141,11 @@ def get_args(namespace):
argv = [sys.argv[0]]
if namespace.qt_flag is not None:
argv += ['-' + flag[0] for flag in namespace.qt_flag]
argv += ['--' + flag[0] for flag in namespace.qt_flag]
if namespace.qt_arg is not None:
for name, value in namespace.qt_arg:
argv += ['-' + name, value]
argv += ['--' + name, value]
return argv