-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not recognize files that start with a slash, e.g. "/var/log/test.txt" #42
Comments
Thanks @dpagano I will have a look and see what can be done about intelligently detecting file paths. Another good thing to add to the library is what you mentioned - optionally disable the "/" prefix altogether. In the meantime you can use For example:
I hope that works for you in the meantime. |
Thanks for your answer @siywilliams |
I have this exact problem which really is an issue when running programs on mono (mac or linux) Right now what I do is run through all arguments before giving them to fluent command line parser and adding: :: if it starts with /, once i get the result back i check for ::/ and remove the :: Quite a hack!
|
In v1.5 you will be able to do |
When setting up for retrieving file names (p.Setup<List>('f', "files")), the resulting parser does not recognize file names that start with a slash, such as "/var/log/test.txt" or "/Users/fclp/test.txt".
I suppose this is because the slash is interpreted as an option.
However, I did not find anything that lets me disable "/" as option trigger.
Note that such file names are standard on Linux / Mac environments.
The text was updated successfully, but these errors were encountered: