Incorrect parsing of integer and enum switches
Brought to you by:
robsmyth
Parsing
program.exe -n 1 -m 2
where n and m are integer switches fails. To solve this replace the line
this.valuePattern = @")((?<value>.+))";
with
this.valuePattern = @")((?<value>\S+))";
in IntSwitch.initialise()
The same goes for enum switches. The solution here is to replace
this.valuePattern = @")((?:"")(?<value>.+)(?:"")|(?<value>\S+))";
with
this.valuePattern = @")((?:"")(?<value>[^""]+)(?:"")|(?<value>\S+))";
in EnumSwitch.initialise()