{"action":"created","issue":{"url":"https://api.github.com/repos/natemcmaster/CommandLineUtils/issues/68","repository_url":"https://api.github.com/repos/natemcmaster/CommandLineUtils","labels_url":"https://api.github.com/repos/natemcmaster/CommandLineUtils/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/natemcmaster/CommandLineUtils/issues/68/comments","events_url":"https://api.github.com/repos/natemcmaster/CommandLineUtils/issues/68/events","html_url":"https://github.com/natemcmaster/CommandLineUtils/issues/68","id":308302845,"number":68,"title":"File path argument with leading/trailing quotes throwing Exception","user":{"login":"billpratt","id":2847527,"avatar_url":"https://avatars3.githubusercontent.com/u/2847527?v=4","gravatar_id":"","url":"https://api.github.com/users/billpratt","html_url":"https://github.com/billpratt","followers_url":"https://api.github.com/users/billpratt/followers","following_url":"https://api.github.com/users/billpratt/following{/other_user}","gists_url":"https://api.github.com/users/billpratt/gists{/gist_id}","starred_url":"https://api.github.com/users/billpratt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/billpratt/subscriptions","organizations_url":"https://api.github.com/users/billpratt/orgs","repos_url":"https://api.github.com/users/billpratt/repos","events_url":"https://api.github.com/users/billpratt/events{/privacy}","received_events_url":"https://api.github.com/users/billpratt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-24T22:06:41Z","updated_at":"2018-03-26T01:15:25Z","closed_at":"2018-03-26T01:15:25Z","author_association":"NONE","body":"First off, thank you for forking this and continuing to work on it!\r\n\r\nMany CLI apps let you pass in a file path argument as such ```--filepath=\"C:\\Users\\foo\\file\"``` (Windows) and ```--filepath=\"/home/foo/file\"``` (Linux). When trying to do this with a C# Console app, the quotes are escaped as ```\"\\\"C:\\\\Users\\\\foo\\\\file\\\"\"``` and ```\"\\\"/home/foo/file\\\"\"```. This causes an exception to be thrown when using [LegalFilePathAttribute](https://github.com/natemcmaster/CommandLineUtils/blob/master/src/CommandLineUtils/Attributes/LegalFilePathAttribute.cs#L32) because ```new FileInfo(path)``` throws a System.NotSupportedException with message \"The given path's format is not supported.\". I understand that this is not a bug from this library. I'd like to open a conversation about supporting this type of argument behavior."},"comment":{"url":"https://api.github.com/repos/natemcmaster/CommandLineUtils/issues/comments/376020327","html_url":"https://github.com/natemcmaster/CommandLineUtils/issues/68#issuecomment-376020327","issue_url":"https://api.github.com/repos/natemcmaster/CommandLineUtils/issues/68","id":376020327,"user":{"login":"natemcmaster","id":2696087,"avatar_url":"https://avatars0.githubusercontent.com/u/2696087?v=4","gravatar_id":"","url":"https://api.github.com/users/natemcmaster","html_url":"https://github.com/natemcmaster","followers_url":"https://api.github.com/users/natemcmaster/followers","following_url":"https://api.github.com/users/natemcmaster/following{/other_user}","gists_url":"https://api.github.com/users/natemcmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/natemcmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natemcmaster/subscriptions","organizations_url":"https://api.github.com/users/natemcmaster/orgs","repos_url":"https://api.github.com/users/natemcmaster/repos","events_url":"https://api.github.com/users/natemcmaster/events{/privacy}","received_events_url":"https://api.github.com/users/natemcmaster/received_events","type":"User","site_admin":false},"created_at":"2018-03-26T01:15:25Z","updated_at":"2018-03-26T01:15:25Z","author_association":"OWNER","body":"Ok, it sounds to me like this is the expected behavior then. Normally when using bash/powershell, the shell will remove quotes before passing it into the program. Console.ReadLine doesn't do, but that's something for the caller of Prompt.GetString or Console.ReadLine to handle."}}
{"actor":{"display_login":"natemcmaster"}}