{"action":"created","issue":{"url":"https://api.github.com/repos/python-cmd2/cmd2/issues/506","repository_url":"https://api.github.com/repos/python-cmd2/cmd2","labels_url":"https://api.github.com/repos/python-cmd2/cmd2/issues/506/labels{/name}","comments_url":"https://api.github.com/repos/python-cmd2/cmd2/issues/506/comments","events_url":"https://api.github.com/repos/python-cmd2/cmd2/issues/506/events","html_url":"https://github.com/python-cmd2/cmd2/issues/506","id":353221981,"node_id":"MDU6SXNzdWUzNTMyMjE5ODE=","number":506,"title":"Argparse decorators are treating quoted flags as actual flags","user":{"login":"kmvanbrunt","id":28899027,"node_id":"MDQ6VXNlcjI4ODk5MDI3","avatar_url":"https://avatars1.githubusercontent.com/u/28899027?v=4","gravatar_id":"","url":"https://api.github.com/users/kmvanbrunt","html_url":"https://github.com/kmvanbrunt","followers_url":"https://api.github.com/users/kmvanbrunt/followers","following_url":"https://api.github.com/users/kmvanbrunt/following{/other_user}","gists_url":"https://api.github.com/users/kmvanbrunt/gists{/gist_id}","starred_url":"https://api.github.com/users/kmvanbrunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmvanbrunt/subscriptions","organizations_url":"https://api.github.com/users/kmvanbrunt/orgs","repos_url":"https://api.github.com/users/kmvanbrunt/repos","events_url":"https://api.github.com/users/kmvanbrunt/events{/privacy}","received_events_url":"https://api.github.com/users/kmvanbrunt/received_events","type":"User","site_admin":false},"labels":[{"id":324131055,"node_id":"MDU6TGFiZWwzMjQxMzEwNTU=","url":"https://api.github.com/repos/python-cmd2/cmd2/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-23T04:42:31Z","updated_at":"2018-08-31T15:36:50Z","closed_at":"2018-08-31T15:36:50Z","author_association":"CONTRIBUTOR","body":"In the argparse decorators, `parse_quoted_string()` is being called which strips quotes from all arguments before parsing them with argparse. Therefore something like \"-s\" will be seen as -s.\r\n\r\nThis behavior is consistent with a Python script using argparse on options sent from the shell (ex: bash) since they also remove quotes first. However it still feels wrong. When I removed the behavior, lots of unit tests fail so we are obviously relying on it.\r\n\r\n@kotfu @tleonhardt @anselor \r\nDo you have any thoughts on this behavior?"},"comment":{"url":"https://api.github.com/repos/python-cmd2/cmd2/issues/comments/417702810","html_url":"https://github.com/python-cmd2/cmd2/issues/506#issuecomment-417702810","issue_url":"https://api.github.com/repos/python-cmd2/cmd2/issues/506","id":417702810,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNzcwMjgxMA==","user":{"login":"kmvanbrunt","id":28899027,"node_id":"MDQ6VXNlcjI4ODk5MDI3","avatar_url":"https://avatars1.githubusercontent.com/u/28899027?v=4","gravatar_id":"","url":"https://api.github.com/users/kmvanbrunt","html_url":"https://github.com/kmvanbrunt","followers_url":"https://api.github.com/users/kmvanbrunt/followers","following_url":"https://api.github.com/users/kmvanbrunt/following{/other_user}","gists_url":"https://api.github.com/users/kmvanbrunt/gists{/gist_id}","starred_url":"https://api.github.com/users/kmvanbrunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmvanbrunt/subscriptions","organizations_url":"https://api.github.com/users/kmvanbrunt/orgs","repos_url":"https://api.github.com/users/kmvanbrunt/repos","events_url":"https://api.github.com/users/kmvanbrunt/events{/privacy}","received_events_url":"https://api.github.com/users/kmvanbrunt/received_events","type":"User","site_admin":false},"created_at":"2018-08-31T15:36:50Z","updated_at":"2018-08-31T15:36:50Z","author_association":"CONTRIBUTOR","body":"Closing since it matches shell behavior"}}
{"actor":{"display_login":"kmvanbrunt"}}