Description
Issue by Rusk85
Saturday Aug 15, 2015 at 22:02 GMT
Originally opened as gsscoder/commandline#224
… unit tests. I have refrained from altering the core logic. Instead I added two overloaded methods for Parser.ParseArguments(...) with an additional optional parameter "useWinStyleOptions" which is set to true per default. From there on I simply check all arguments for the win style flag ("/") and replace them with the stock double dashes ("--"). The result I pass to the original ParseArguments-Methods.
While as a personal preference I take unix style options over windows style options every day but there is a remote service I am using that is among other things capable of executing applications. I cant easily change the service - its fairly old and written in vb.net - but I checked the implementation. Turns out its capable of interpreting windows style options and passing that to the application it starts. So there you go.
There might be others in a similar situation to whom this could be a possible solution.
Please review the code.
Rusk85 included the following code: https://github.com/gsscoder/commandline/pull/224/commits