{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/650","labels_url":"https://api.github.com/repos/facebook/react-native/issues/650/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/650/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/650/events","html_url":"https://github.com/facebook/react-native/pull/650","id":66209289,"number":650,"title":"Use commander to parse command-line options","user":{"login":"pedro","id":2248,"avatar_url":"https://avatars.githubusercontent.com/u/2248?v=3","gravatar_id":"","url":"https://api.github.com/users/pedro","html_url":"https://github.com/pedro","followers_url":"https://api.github.com/users/pedro/followers","following_url":"https://api.github.com/users/pedro/following{/other_user}","gists_url":"https://api.github.com/users/pedro/gists{/gist_id}","starred_url":"https://api.github.com/users/pedro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pedro/subscriptions","organizations_url":"https://api.github.com/users/pedro/orgs","repos_url":"https://api.github.com/users/pedro/repos","events_url":"https://api.github.com/users/pedro/events{/privacy}","received_events_url":"https://api.github.com/users/pedro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-03T19:01:49Z","updated_at":"2015-04-03T19:04:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/facebook/react-native/pulls/650","html_url":"https://github.com/facebook/react-native/pull/650","diff_url":"https://github.com/facebook/react-native/pull/650.diff","patch_url":"https://github.com/facebook/react-native/pull/650.patch"},"body":"Just making it a bit more declarative/easier to add new commands and options to the command line.\r\n\r\nAdding this as a foundation because I want to add more command line tooling like `react-native build`.\r\n\r\nWhile in here, is there a reason I'm missing for the split between `react-native-cli` and `cli.js`? Can we merge these?"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/89392703","html_url":"https://github.com/facebook/react-native/pull/650#issuecomment-89392703","issue_url":"https://api.github.com/repos/facebook/react-native/issues/650","id":89392703,"user":{"login":"vjeux","id":197597,"avatar_url":"https://avatars.githubusercontent.com/u/197597?v=3","gravatar_id":"","url":"https://api.github.com/users/vjeux","html_url":"https://github.com/vjeux","followers_url":"https://api.github.com/users/vjeux/followers","following_url":"https://api.github.com/users/vjeux/following{/other_user}","gists_url":"https://api.github.com/users/vjeux/gists{/gist_id}","starred_url":"https://api.github.com/users/vjeux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vjeux/subscriptions","organizations_url":"https://api.github.com/users/vjeux/orgs","repos_url":"https://api.github.com/users/vjeux/repos","events_url":"https://api.github.com/users/vjeux/events{/privacy}","received_events_url":"https://api.github.com/users/vjeux/received_events","type":"User","site_admin":false},"created_at":"2015-04-03T19:04:21Z","updated_at":"2015-04-03T19:04:21Z","body":"react-native-cli is installed globally and therefore extremely hard to change. The goal for it is to do as few work as possible, and to forward all the commands to node_modules/react-native/cli.js which can be updated independently.\r\n\r\nIf you want to add a build command, you should add it in cli.js. Hopefully if we've done our job correctly, we'll never update react-native-cli ever again."}}