{"action":"created","issue":{"url":"https://api.github.com/repos/ember-cli/ember-cli/issues/1680","labels_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/1680/labels{/name}","comments_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/1680/comments","events_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/1680/events","html_url":"https://github.com/ember-cli/ember-cli/issues/1680","id":40366137,"number":1680,"title":"Blueprint option order matters when it shouldn't","user":{"login":"jakecraige","id":3799709,"avatar_url":"https://avatars.githubusercontent.com/u/3799709?v=3","gravatar_id":"","url":"https://api.github.com/users/jakecraige","html_url":"https://github.com/jakecraige","followers_url":"https://api.github.com/users/jakecraige/followers","following_url":"https://api.github.com/users/jakecraige/following{/other_user}","gists_url":"https://api.github.com/users/jakecraige/gists{/gist_id}","starred_url":"https://api.github.com/users/jakecraige/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakecraige/subscriptions","organizations_url":"https://api.github.com/users/jakecraige/orgs","repos_url":"https://api.github.com/users/jakecraige/repos","events_url":"https://api.github.com/users/jakecraige/events{/privacy}","received_events_url":"https://api.github.com/users/jakecraige/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ember-cli/ember-cli/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2014-08-15T17:15:46Z","updated_at":"2015-01-08T15:21:05Z","closed_at":"2015-01-08T15:21:05Z","body":"It seems that options are not parsed correctly if the entity name is not first. It comes from [this line](https://github.com/stefanpenner/ember-cli/blob/cda477f8a6fd4a2d6c904681e23b4a0d7a388316/lib/tasks/generate-from-blueprint.js#L17) just taking the first argument. \r\n\r\nAs an example:\r\n\r\n```sh\r\nember g controller type:array contacts\r\n```\r\n\r\nwill not work correctly. it has to be\r\n\r\n```sh\r\nember g controller contacts type:array\r\n```\r\n\r\nShould be an easy fix, if this is something we want I'm sure I could knock it out pretty quickly if no one else wants to"},"comment":{"url":"https://api.github.com/repos/ember-cli/ember-cli/issues/comments/69193581","html_url":"https://github.com/ember-cli/ember-cli/issues/1680#issuecomment-69193581","issue_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/1680","id":69193581,"user":{"login":"jakecraige","id":3799709,"avatar_url":"https://avatars.githubusercontent.com/u/3799709?v=3","gravatar_id":"","url":"https://api.github.com/users/jakecraige","html_url":"https://github.com/jakecraige","followers_url":"https://api.github.com/users/jakecraige/followers","following_url":"https://api.github.com/users/jakecraige/following{/other_user}","gists_url":"https://api.github.com/users/jakecraige/gists{/gist_id}","starred_url":"https://api.github.com/users/jakecraige/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakecraige/subscriptions","organizations_url":"https://api.github.com/users/jakecraige/orgs","repos_url":"https://api.github.com/users/jakecraige/repos","events_url":"https://api.github.com/users/jakecraige/events{/privacy}","received_events_url":"https://api.github.com/users/jakecraige/received_events","type":"User","site_admin":false},"created_at":"2015-01-08T15:21:04Z","updated_at":"2015-01-08T15:21:04Z","body":"no longer an issue since we use `--flags` now.\r\n\r\n`ember g route --type=resource cats` works as expected. "}}