diff --git a/lib/parse/cmdline.py b/lib/parse/cmdline.py index 6cda6f500..b5d13e7c8 100644 --- a/lib/parse/cmdline.py +++ b/lib/parse/cmdline.py @@ -788,7 +788,7 @@ def cmdLineParser(): prompt = False advancedHelp = True - for arg in sys.argv: + for arg in (sys.argv if not IS_WIN else shlex.split(" ".join(sys.argv))): argv.append(getUnicode(arg, encoding=sys.getfilesystemencoding())) checkDeprecatedOptions(argv)