commandline
commandline copied to clipboard
Bug: \r\n not removed for last argument
I have an app that works fine when ran from the console but fails in visual studio. Seems the last 2 characters a single command, like "app --late" is "--late\r\n" which breaks the parser.
Adding
for(var i = 0; i < args.Length; i++)
args[i] = args[i].Trim('\n','\r');
allows it to work.