{"action":"created","issue":{"url":"https://api.github.com/repos/apache/cordova-ios/issues/176","labels_url":"https://api.github.com/repos/apache/cordova-ios/issues/176/labels{/name}","comments_url":"https://api.github.com/repos/apache/cordova-ios/issues/176/comments","events_url":"https://api.github.com/repos/apache/cordova-ios/issues/176/events","html_url":"https://github.com/apache/cordova-ios/pull/176","id":114706222,"number":176,"title":"CB-9827 Implement and expose PlatformApi for iOS","user":{"login":"sgrebnov","id":981580,"avatar_url":"https://avatars.githubusercontent.com/u/981580?v=3","gravatar_id":"","url":"https://api.github.com/users/sgrebnov","html_url":"https://github.com/sgrebnov","followers_url":"https://api.github.com/users/sgrebnov/followers","following_url":"https://api.github.com/users/sgrebnov/following{/other_user}","gists_url":"https://api.github.com/users/sgrebnov/gists{/gist_id}","starred_url":"https://api.github.com/users/sgrebnov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgrebnov/subscriptions","organizations_url":"https://api.github.com/users/sgrebnov/orgs","repos_url":"https://api.github.com/users/sgrebnov/repos","events_url":"https://api.github.com/users/sgrebnov/events{/privacy}","received_events_url":"https://api.github.com/users/sgrebnov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-02T23:15:38Z","updated_at":"2015-11-24T00:28:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/cordova-ios/pulls/176","html_url":"https://github.com/apache/cordova-ios/pull/176","diff_url":"https://github.com/apache/cordova-ios/pull/176.diff","patch_url":"https://github.com/apache/cordova-ios/pull/176.patch"},"body":"https://issues.apache.org/jira/browse/CB-9827\r\n\r\n* Prepare and plugin management functionality has been moved from Lib to platform-ios\r\n* Includes cordova-common\r\n* Replaced console.log w/ corresponding events.emit calls\r\n* I tried to reduce changes and keep files/logic as-is to simplify code review\r\n\r\nTested using mobile-spec (also compared generated mobilespec app w/ original one using diff tool to ensure correctness)"},"comment":{"url":"https://api.github.com/repos/apache/cordova-ios/issues/comments/159113086","html_url":"https://github.com/apache/cordova-ios/pull/176#issuecomment-159113086","issue_url":"https://api.github.com/repos/apache/cordova-ios/issues/176","id":159113086,"user":{"login":"omefire","id":4992035,"avatar_url":"https://avatars.githubusercontent.com/u/4992035?v=3","gravatar_id":"","url":"https://api.github.com/users/omefire","html_url":"https://github.com/omefire","followers_url":"https://api.github.com/users/omefire/followers","following_url":"https://api.github.com/users/omefire/following{/other_user}","gists_url":"https://api.github.com/users/omefire/gists{/gist_id}","starred_url":"https://api.github.com/users/omefire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/omefire/subscriptions","organizations_url":"https://api.github.com/users/omefire/orgs","repos_url":"https://api.github.com/users/omefire/repos","events_url":"https://api.github.com/users/omefire/events{/privacy}","received_events_url":"https://api.github.com/users/omefire/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T00:28:13Z","updated_at":"2015-11-24T00:28:13Z","body":"Instead of relying on 'nopt' default value for its constructor, why don't we explicitly use: 'process.args' here ?\r\nSomething like:\r\n\r\n``` \r\nvar argv = require('nopt') ({\r\n    'help' : Boolean,\r\n    'cli' : Boolean,\r\n    'shared': Boolean,\r\n    'link' : Boolean\r\n}, process.argv)```"}}