Incorrect parsing of commandline
Brought to you by:
robsmyth
Commandlines like
"C:\path with space\program.exe" -k "text with space"
are parsed incorrectly.
The crulpit is in CommandLineParser.trimOffApplicationName. Changing the regex from
@"^(?<commandLine>("".+""|(\S)+))(?<remainder>.+)"
to
@"^(?<commandLine>(""(^"")+""|(\S)+))(?<remainder>.+)"
solves this problem.