{"action":"created","issue":{"url":"https://api.github.com/repos/commandlineparser/commandline/issues/91","repository_url":"https://api.github.com/repos/commandlineparser/commandline","labels_url":"https://api.github.com/repos/commandlineparser/commandline/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/commandlineparser/commandline/issues/91/comments","events_url":"https://api.github.com/repos/commandlineparser/commandline/issues/91/events","html_url":"https://github.com/commandlineparser/commandline/issues/91","id":271214081,"number":91,"title":"MissingRequiredOptionError when specifying required Value after enumerable Options","user":{"login":"ericnewton76","id":2211788,"avatar_url":"https://avatars0.githubusercontent.com/u/2211788?v=4","gravatar_id":"","url":"https://api.github.com/users/ericnewton76","html_url":"https://github.com/ericnewton76","followers_url":"https://api.github.com/users/ericnewton76/followers","following_url":"https://api.github.com/users/ericnewton76/following{/other_user}","gists_url":"https://api.github.com/users/ericnewton76/gists{/gist_id}","starred_url":"https://api.github.com/users/ericnewton76/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericnewton76/subscriptions","organizations_url":"https://api.github.com/users/ericnewton76/orgs","repos_url":"https://api.github.com/users/ericnewton76/repos","events_url":"https://api.github.com/users/ericnewton76/events{/privacy}","received_events_url":"https://api.github.com/users/ericnewton76/received_events","type":"User","site_admin":false},"labels":[{"id":740599276,"url":"https://api.github.com/repos/commandlineparser/commandline/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/commandlineparser/commandline/milestones/1","html_url":"https://github.com/commandlineparser/commandline/milestone/1","labels_url":"https://api.github.com/repos/commandlineparser/commandline/milestones/1/labels","id":2887833,"number":1,"title":"2.0.x-stable","description":"","creator":{"login":"ericnewton76","id":2211788,"avatar_url":"https://avatars0.githubusercontent.com/u/2211788?v=4","gravatar_id":"","url":"https://api.github.com/users/ericnewton76","html_url":"https://github.com/ericnewton76","followers_url":"https://api.github.com/users/ericnewton76/followers","following_url":"https://api.github.com/users/ericnewton76/following{/other_user}","gists_url":"https://api.github.com/users/ericnewton76/gists{/gist_id}","starred_url":"https://api.github.com/users/ericnewton76/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericnewton76/subscriptions","organizations_url":"https://api.github.com/users/ericnewton76/orgs","repos_url":"https://api.github.com/users/ericnewton76/repos","events_url":"https://api.github.com/users/ericnewton76/events{/privacy}","received_events_url":"https://api.github.com/users/ericnewton76/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":0,"state":"open","created_at":"2017-11-04T17:22:19Z","updated_at":"2017-11-04T18:37:52Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2017-11-04T18:37:51Z","updated_at":"2017-11-04T18:37:54Z","closed_at":null,"author_association":"OWNER","body":"<a href=\"https://github.com/SuperFXMaster\"><img src=\"https://avatars0.githubusercontent.com/u/6494919?v=4\" align=\"left\" width=\"96\" height=\"96\" hspace=\"10\"></img></a> **Issue by [SuperFXMaster](https://github.com/SuperFXMaster)**\n_Tuesday Oct 11, 2016 at 19:24 GMT_\n_Originally opened as https://github.com/gsscoder/commandline/issues/361_\n\n----\n\nThe following options class:\n\n``` C#\npublic class CommandLineOptions\n{\n    [Value(0, Required = true)]\n    public string InputFileName { get; set; }\n\n    [Option('o', \"output\")]\n    public string OutputFileName { get; set; }\n\n    [Option('i', \"include\", Separator = ',')]\n    public IEnumerable<string> Included { get; set; }\n\n    [Option('e', \"exclude\", Separator = ',')]\n    public IEnumerable<string> Excluded { get; set; }\n}\n```\n\nWhen provided to the default parser, with the commandline `app.exe --exclude=a,b InputFile.txt` results in a `MissingRequiredOptionError: A required value not bound to option name is missing`. I expected the library to accept `InputFileName = InputFile.txt` and `--exclude=a,b` as `Excluded = { \"a\", \"b\" }`. Is there something else required to make this work as I expect, or is it a bug?\n\n"},"comment":{"url":"https://api.github.com/repos/commandlineparser/commandline/issues/comments/341920008","html_url":"https://github.com/commandlineparser/commandline/issues/91#issuecomment-341920008","issue_url":"https://api.github.com/repos/commandlineparser/commandline/issues/91","id":341920008,"user":{"login":"ericnewton76","id":2211788,"avatar_url":"https://avatars0.githubusercontent.com/u/2211788?v=4","gravatar_id":"","url":"https://api.github.com/users/ericnewton76","html_url":"https://github.com/ericnewton76","followers_url":"https://api.github.com/users/ericnewton76/followers","following_url":"https://api.github.com/users/ericnewton76/following{/other_user}","gists_url":"https://api.github.com/users/ericnewton76/gists{/gist_id}","starred_url":"https://api.github.com/users/ericnewton76/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericnewton76/subscriptions","organizations_url":"https://api.github.com/users/ericnewton76/orgs","repos_url":"https://api.github.com/users/ericnewton76/repos","events_url":"https://api.github.com/users/ericnewton76/events{/privacy}","received_events_url":"https://api.github.com/users/ericnewton76/received_events","type":"User","site_admin":false},"created_at":"2017-11-04T18:37:54Z","updated_at":"2017-11-04T18:37:54Z","author_association":"OWNER","body":"<a href=\"https://github.com/hugener\"><img src=\"https://avatars2.githubusercontent.com/u/5023998?v=4\" align=\"left\" width=\"48\" height=\"48\" hspace=\"10\"></img></a> **Comment by [hugener](https://github.com/hugener)**\n_Monday Mar 13, 2017 at 18:21 GMT_\n\n----\n\nHad quick look into this and could let the example above to run by changing the order of parameters in Concat in the following line:\r\nhttps://github.com/gsscoder/commandline/blob/master/src/CommandLine/Core/Tokenizer.cs#L54\r\nThe changed line becomes:\r\n`return tokenizerResult.Map(tokens => values.Concat(tokens));`\r\n\r\nI'm not sure it's valid for other cases though. Maybe someone who knows more about it can have a look. It would be nice to get a stable version.\n"}}
{"actor":{"display_login":"ericnewton76"}}