{"action":"created","issue":{"url":"https://api.github.com/repos/kbknapp/clap-rs/issues/348","labels_url":"https://api.github.com/repos/kbknapp/clap-rs/issues/348/labels{/name}","comments_url":"https://api.github.com/repos/kbknapp/clap-rs/issues/348/comments","events_url":"https://api.github.com/repos/kbknapp/clap-rs/issues/348/events","html_url":"https://github.com/kbknapp/clap-rs/issues/348","id":117430600,"number":348,"title":"Add support for comma separated values","user":{"login":"kbknapp","id":6942134,"avatar_url":"https://avatars.githubusercontent.com/u/6942134?v=3","gravatar_id":"","url":"https://api.github.com/users/kbknapp","html_url":"https://github.com/kbknapp","followers_url":"https://api.github.com/users/kbknapp/followers","following_url":"https://api.github.com/users/kbknapp/following{/other_user}","gists_url":"https://api.github.com/users/kbknapp/gists{/gist_id}","starred_url":"https://api.github.com/users/kbknapp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbknapp/subscriptions","organizations_url":"https://api.github.com/users/kbknapp/orgs","repos_url":"https://api.github.com/users/kbknapp/repos","events_url":"https://api.github.com/users/kbknapp/events{/privacy}","received_events_url":"https://api.github.com/users/kbknapp/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kbknapp/clap-rs/labels/C:%20parsing","name":"C: parsing","color":"fad8c7"},{"url":"https://api.github.com/repos/kbknapp/clap-rs/labels/D:%20easy","name":"D: easy","color":"d4c5f9"},{"url":"https://api.github.com/repos/kbknapp/clap-rs/labels/M:%20mentored","name":"M: mentored","color":"f7c6c7"},{"url":"https://api.github.com/repos/kbknapp/clap-rs/labels/P3:%20want%20to%20have","name":"P3: want to have","color":"bfe5bf"},{"url":"https://api.github.com/repos/kbknapp/clap-rs/labels/T:%20new%20feature","name":"T: new feature","color":"bfd4f2"},{"url":"https://api.github.com/repos/kbknapp/clap-rs/labels/W:%201.x","name":"W: 1.x","color":"bfdadc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-17T19:29:33Z","updated_at":"2015-11-30T07:05:15Z","closed_at":null,"body":"Example, these should all parse to exactly the same matches\n\n```\n$ prog --opt val1 val2 val3 \n$ prog --opt val1,val2,val3\n$ prog --opt=val1,val2,val3\n$ prog -oval1,val2,val3\n```"},"comment":{"url":"https://api.github.com/repos/kbknapp/clap-rs/issues/comments/160541421","html_url":"https://github.com/kbknapp/clap-rs/issues/348#issuecomment-160541421","issue_url":"https://api.github.com/repos/kbknapp/clap-rs/issues/348","id":160541421,"user":{"login":"psyomn","id":505688,"avatar_url":"https://avatars.githubusercontent.com/u/505688?v=3","gravatar_id":"","url":"https://api.github.com/users/psyomn","html_url":"https://github.com/psyomn","followers_url":"https://api.github.com/users/psyomn/followers","following_url":"https://api.github.com/users/psyomn/following{/other_user}","gists_url":"https://api.github.com/users/psyomn/gists{/gist_id}","starred_url":"https://api.github.com/users/psyomn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psyomn/subscriptions","organizations_url":"https://api.github.com/users/psyomn/orgs","repos_url":"https://api.github.com/users/psyomn/repos","events_url":"https://api.github.com/users/psyomn/events{/privacy}","received_events_url":"https://api.github.com/users/psyomn/received_events","type":"User","site_admin":false},"created_at":"2015-11-30T07:05:15Z","updated_at":"2015-11-30T07:05:15Z","body":"Hey! Sorry for the late reply, it's been a little busy for me lately. I had the chance to work on this a little this weekend. I have a few questions!\r\n\r\nWould introducing something like this be on the right path (notice `take_list`) ?\r\n\r\n~~~~rust\r\nlet matches = App::new(\"MyApp\")\r\n        .arg(Arg::with_name(\"input\")\r\n                        .help(\"the input file to use\")\r\n                        .takes_value(true)\r\n                        .short(\"i\")\r\n                        .long(\"input\")\r\n                        .multiple(true)\r\n                        .takes_list(true)\r\n                        .required(true)\r\n                        .conflicts_with(\"output\"))\r\n        .get_matches();\r\n~~~~\r\n\r\nSo let's say this implementation works. When we're asking for `value_of` of `input` for this example, we're expecting a `&str` right? I was thinking of returning a vector, but that doesn't seem that it would be going in the right direction. So in fact, we'd expect to get a string instead of a list, and leave the user to deal with said input."}}