commandline icon indicating copy to clipboard operation
commandline copied to clipboard

Bug: \r\n not removed for last argument

Open Stretto opened this issue 7 years ago • 0 comments

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.

Stretto avatar Jun 17 '17 09:06 Stretto