adamabdelhamed / PowerArgs

The ultimate .NET Standard command line argument parser
MIT License
568 stars 56 forks source link

Slash (/) with positional arguments running on Linux & MacOS #147

Closed BlackFrog1 closed 3 years ago

BlackFrog1 commented 4 years ago

On Unix based operating system traditionally command-line options consist of a dash (-). On Windows , slash(/) have been it's standard.

Using the absolute path to a file with positional arguments doesn't parse correctly on linux. Annotation 2020-04-22 173228

BlackFrog1 commented 4 years ago

Here is my sample code I used to test my changes https://gist.github.com/BlackFrog1/b113af22d79c016bcd2b27070b7f2653

And the output: Annotation 2020-04-22 175310

adamabdelhamed commented 3 years ago

Thanks for the PR, but I found a way to address the issue more holistically and with fewer side effects. I'll push this the next time I make a release to nuget.