{"action":"created","comment":{"url":"https://api.github.com/repos/Polymer/polymer-cli/pulls/comments/62709167","id":62709167,"diff_hunk":"@@ -0,0 +1,72 @@\n+/**\n+ * @license\n+ * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.\n+ * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt\n+ * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt\n+ * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt\n+ * Code distributed by Google as part of the polymer project is also\n+ * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt\n+ */\n+\n+'use strict';\n+\n+const packageJSON = require('../../package.json');\n+const assert = require('chai').assert;\n+const PolymerCli = require('../../lib/polymer-cli').PolymerCli;\n+const sinon = require('sinon');\n+\n+suite('The general CLI', () => {\n+\n+  test('displays general help when no command is called', () => {\n+    let polytool = new PolymerCli();","path":"test/commands/cli_test.js","position":21,"original_position":21,"commit_id":"4df4633dc6cdd9b868002c88a50a4f4243fbf08e","original_commit_id":"4df4633dc6cdd9b868002c88a50a4f4243fbf08e","user":{"login":"FredKSchott","id":622227,"avatar_url":"https://avatars.githubusercontent.com/u/622227?v=3","gravatar_id":"","url":"https://api.github.com/users/FredKSchott","html_url":"https://github.com/FredKSchott","followers_url":"https://api.github.com/users/FredKSchott/followers","following_url":"https://api.github.com/users/FredKSchott/following{/other_user}","gists_url":"https://api.github.com/users/FredKSchott/gists{/gist_id}","starred_url":"https://api.github.com/users/FredKSchott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FredKSchott/subscriptions","organizations_url":"https://api.github.com/users/FredKSchott/orgs","repos_url":"https://api.github.com/users/FredKSchott/repos","events_url":"https://api.github.com/users/FredKSchott/events{/privacy}","received_events_url":"https://api.github.com/users/FredKSchott/received_events","type":"User","site_admin":false},"body":"doh, good catch. ","created_at":"2016-05-10T16:52:13Z","updated_at":"2016-05-10T16:52:13Z","html_url":"https://github.com/Polymer/polymer-cli/pull/65#discussion_r62709167","pull_request_url":"https://api.github.com/repos/Polymer/polymer-cli/pulls/65","_links":{"self":{"href":"https://api.github.com/repos/Polymer/polymer-cli/pulls/comments/62709167"},"html":{"href":"https://github.com/Polymer/polymer-cli/pull/65#discussion_r62709167"},"pull_request":{"href":"https://api.github.com/repos/Polymer/polymer-cli/pulls/65"}}},"pull_request":{"url":"https://api.github.com/repos/Polymer/polymer-cli/pulls/65","id":69422322,"html_url":"https://github.com/Polymer/polymer-cli/pull/65","diff_url":"https://github.com/Polymer/polymer-cli/pull/65.diff","patch_url":"https://github.com/Polymer/polymer-cli/pull/65.patch","issue_url":"https://api.github.com/repos/Polymer/polymer-cli/issues/65","number":65,"state":"open","locked":false,"title":"Support --help & --version flags","user":{"login":"FredKSchott","id":622227,"avatar_url":"https://avatars.githubusercontent.com/u/622227?v=3","gravatar_id":"","url":"https://api.github.com/users/FredKSchott","html_url":"https://github.com/FredKSchott","followers_url":"https://api.github.com/users/FredKSchott/followers","following_url":"https://api.github.com/users/FredKSchott/following{/other_user}","gists_url":"https://api.github.com/users/FredKSchott/gists{/gist_id}","starred_url":"https://api.github.com/users/FredKSchott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FredKSchott/subscriptions","organizations_url":"https://api.github.com/users/FredKSchott/orgs","repos_url":"https://api.github.com/users/FredKSchott/repos","events_url":"https://api.github.com/users/FredKSchott/events{/privacy}","received_events_url":"https://api.github.com/users/FredKSchott/received_events","type":"User","site_admin":false},"body":"Previously, both `--help/-h` & `--version/-v` flags would throw errors if they were used. To implement these across commands, the global `polymer-cli` now watches for and handles them.\r\n\r\nCR @justinfagnani ","created_at":"2016-05-09T22:35:26Z","updated_at":"2016-05-10T16:52:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bff2711775ff6ff88eb8ff1a2804dc2eee78d307","assignee":{"login":"justinfagnani","id":522948,"avatar_url":"https://avatars.githubusercontent.com/u/522948?v=3","gravatar_id":"","url":"https://api.github.com/users/justinfagnani","html_url":"https://github.com/justinfagnani","followers_url":"https://api.github.com/users/justinfagnani/followers","following_url":"https://api.github.com/users/justinfagnani/following{/other_user}","gists_url":"https://api.github.com/users/justinfagnani/gists{/gist_id}","starred_url":"https://api.github.com/users/justinfagnani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justinfagnani/subscriptions","organizations_url":"https://api.github.com/users/justinfagnani/orgs","repos_url":"https://api.github.com/users/justinfagnani/repos","events_url":"https://api.github.com/users/justinfagnani/events{/privacy}","received_events_url":"https://api.github.com/users/justinfagnani/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Polymer/polymer-cli/pulls/65/commits","review_comments_url":"https://api.github.com/repos/Polymer/polymer-cli/pulls/65/comments","review_comment_url":"https://api.github.com/repos/Polymer/polymer-cli/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Polymer/polymer-cli/issues/65/comments","statuses_url":"https://api.github.com/repos/Polymer/polymer-cli/statuses/4df4633dc6cdd9b868002c88a50a4f4243fbf08e","head":{"label":"Polymer:help-and-version-flags","ref":"help-and-version-flags","sha":"4df4633dc6cdd9b868002c88a50a4f4243fbf08e","user":{"login":"Polymer","id":2159051,"avatar_url":"https://avatars.githubusercontent.com/u/2159051?v=3","gravatar_id":"","url":"https://api.github.com/users/Polymer","html_url":"https://github.com/Polymer","followers_url":"https://api.github.com/users/Polymer/followers","following_url":"https://api.github.com/users/Polymer/following{/other_user}","gists_url":"https://api.github.com/users/Polymer/gists{/gist_id}","starred_url":"https://api.github.com/users/Polymer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Polymer/subscriptions","organizations_url":"https://api.github.com/users/Polymer/orgs","repos_url":"https://api.github.com/users/Polymer/repos","events_url":"https://api.github.com/users/Polymer/events{/privacy}","received_events_url":"https://api.github.com/users/Polymer/received_events","type":"Organization","site_admin":false},"repo":{"id":51951003,"name":"polymer-cli","full_name":"Polymer/polymer-cli","owner":{"login":"Polymer","id":2159051,"avatar_url":"https://avatars.githubusercontent.com/u/2159051?v=3","gravatar_id":"","url":"https://api.github.com/users/Polymer","html_url":"https://github.com/Polymer","followers_url":"https://api.github.com/users/Polymer/followers","following_url":"https://api.github.com/users/Polymer/following{/other_user}","gists_url":"https://api.github.com/users/Polymer/gists{/gist_id}","starred_url":"https://api.github.com/users/Polymer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Polymer/subscriptions","organizations_url":"https://api.github.com/users/Polymer/orgs","repos_url":"https://api.github.com/users/Polymer/repos","events_url":"https://api.github.com/users/Polymer/events{/privacy}","received_events_url":"https://api.github.com/users/Polymer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Polymer/polymer-cli","description":"A command-line tool for Polymer projects","fork":false,"url":"https://api.github.com/repos/Polymer/polymer-cli","forks_url":"https://api.github.com/repos/Polymer/polymer-cli/forks","keys_url":"https://api.github.com/repos/Polymer/polymer-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Polymer/polymer-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Polymer/polymer-cli/teams","hooks_url":"https://api.github.com/repos/Polymer/polymer-cli/hooks","issue_events_url":"https://api.github.com/repos/Polymer/polymer-cli/issues/events{/number}","events_url":"https://api.github.com/repos/Polymer/polymer-cli/events","assignees_url":"https://api.github.com/repos/Polymer/polymer-cli/assignees{/user}","branches_url":"https://api.github.com/repos/Polymer/polymer-cli/branches{/branch}","tags_url":"https://api.github.com/repos/Polymer/polymer-cli/tags","blobs_url":"https://api.github.com/repos/Polymer/polymer-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Polymer/polymer-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Polymer/polymer-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/Polymer/polymer-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Polymer/polymer-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/Polymer/polymer-cli/languages","stargazers_url":"https://api.github.com/repos/Polymer/polymer-cli/stargazers","contributors_url":"https://api.github.com/repos/Polymer/polymer-cli/contributors","subscribers_url":"https://api.github.com/repos/Polymer/polymer-cli/subscribers","subscription_url":"https://api.github.com/repos/Polymer/polymer-cli/subscription","commits_url":"https://api.github.com/repos/Polymer/polymer-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/Polymer/polymer-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/Polymer/polymer-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/Polymer/polymer-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/Polymer/polymer-cli/contents/{+path}","compare_url":"https://api.github.com/repos/Polymer/polymer-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Polymer/polymer-cli/merges","archive_url":"https://api.github.com/repos/Polymer/polymer-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Polymer/polymer-cli/downloads","issues_url":"https://api.github.com/repos/Polymer/polymer-cli/issues{/number}","pulls_url":"https://api.github.com/repos/Polymer/polymer-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/Polymer/polymer-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/Polymer/polymer-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Polymer/polymer-cli/labels{/name}","releases_url":"https://api.github.com/repos/Polymer/polymer-cli/releases{/id}","deployments_url":"https://api.github.com/repos/Polymer/polymer-cli/deployments","created_at":"2016-02-17T19:57:15Z","updated_at":"2016-05-09T21:38:33Z","pushed_at":"2016-05-10T01:29:27Z","git_url":"git://github.com/Polymer/polymer-cli.git","ssh_url":"git@github.com:Polymer/polymer-cli.git","clone_url":"https://github.com/Polymer/polymer-cli.git","svn_url":"https://github.com/Polymer/polymer-cli","homepage":null,"size":118,"stargazers_count":10,"watchers_count":10,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":24,"forks":6,"open_issues":24,"watchers":10,"default_branch":"master"}},"base":{"label":"Polymer:master","ref":"master","sha":"bc13562e85583420294966f6dbb88fde4c378eff","user":{"login":"Polymer","id":2159051,"avatar_url":"https://avatars.githubusercontent.com/u/2159051?v=3","gravatar_id":"","url":"https://api.github.com/users/Polymer","html_url":"https://github.com/Polymer","followers_url":"https://api.github.com/users/Polymer/followers","following_url":"https://api.github.com/users/Polymer/following{/other_user}","gists_url":"https://api.github.com/users/Polymer/gists{/gist_id}","starred_url":"https://api.github.com/users/Polymer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Polymer/subscriptions","organizations_url":"https://api.github.com/users/Polymer/orgs","repos_url":"https://api.github.com/users/Polymer/repos","events_url":"https://api.github.com/users/Polymer/events{/privacy}","received_events_url":"https://api.github.com/users/Polymer/received_events","type":"Organization","site_admin":false},"repo":{"id":51951003,"name":"polymer-cli","full_name":"Polymer/polymer-cli","owner":{"login":"Polymer","id":2159051,"avatar_url":"https://avatars.githubusercontent.com/u/2159051?v=3","gravatar_id":"","url":"https://api.github.com/users/Polymer","html_url":"https://github.com/Polymer","followers_url":"https://api.github.com/users/Polymer/followers","following_url":"https://api.github.com/users/Polymer/following{/other_user}","gists_url":"https://api.github.com/users/Polymer/gists{/gist_id}","starred_url":"https://api.github.com/users/Polymer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Polymer/subscriptions","organizations_url":"https://api.github.com/users/Polymer/orgs","repos_url":"https://api.github.com/users/Polymer/repos","events_url":"https://api.github.com/users/Polymer/events{/privacy}","received_events_url":"https://api.github.com/users/Polymer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Polymer/polymer-cli","description":"A command-line tool for Polymer projects","fork":false,"url":"https://api.github.com/repos/Polymer/polymer-cli","forks_url":"https://api.github.com/repos/Polymer/polymer-cli/forks","keys_url":"https://api.github.com/repos/Polymer/polymer-cli/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Polymer/polymer-cli/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Polymer/polymer-cli/teams","hooks_url":"https://api.github.com/repos/Polymer/polymer-cli/hooks","issue_events_url":"https://api.github.com/repos/Polymer/polymer-cli/issues/events{/number}","events_url":"https://api.github.com/repos/Polymer/polymer-cli/events","assignees_url":"https://api.github.com/repos/Polymer/polymer-cli/assignees{/user}","branches_url":"https://api.github.com/repos/Polymer/polymer-cli/branches{/branch}","tags_url":"https://api.github.com/repos/Polymer/polymer-cli/tags","blobs_url":"https://api.github.com/repos/Polymer/polymer-cli/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Polymer/polymer-cli/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Polymer/polymer-cli/git/refs{/sha}","trees_url":"https://api.github.com/repos/Polymer/polymer-cli/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Polymer/polymer-cli/statuses/{sha}","languages_url":"https://api.github.com/repos/Polymer/polymer-cli/languages","stargazers_url":"https://api.github.com/repos/Polymer/polymer-cli/stargazers","contributors_url":"https://api.github.com/repos/Polymer/polymer-cli/contributors","subscribers_url":"https://api.github.com/repos/Polymer/polymer-cli/subscribers","subscription_url":"https://api.github.com/repos/Polymer/polymer-cli/subscription","commits_url":"https://api.github.com/repos/Polymer/polymer-cli/commits{/sha}","git_commits_url":"https://api.github.com/repos/Polymer/polymer-cli/git/commits{/sha}","comments_url":"https://api.github.com/repos/Polymer/polymer-cli/comments{/number}","issue_comment_url":"https://api.github.com/repos/Polymer/polymer-cli/issues/comments{/number}","contents_url":"https://api.github.com/repos/Polymer/polymer-cli/contents/{+path}","compare_url":"https://api.github.com/repos/Polymer/polymer-cli/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Polymer/polymer-cli/merges","archive_url":"https://api.github.com/repos/Polymer/polymer-cli/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Polymer/polymer-cli/downloads","issues_url":"https://api.github.com/repos/Polymer/polymer-cli/issues{/number}","pulls_url":"https://api.github.com/repos/Polymer/polymer-cli/pulls{/number}","milestones_url":"https://api.github.com/repos/Polymer/polymer-cli/milestones{/number}","notifications_url":"https://api.github.com/repos/Polymer/polymer-cli/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Polymer/polymer-cli/labels{/name}","releases_url":"https://api.github.com/repos/Polymer/polymer-cli/releases{/id}","deployments_url":"https://api.github.com/repos/Polymer/polymer-cli/deployments","created_at":"2016-02-17T19:57:15Z","updated_at":"2016-05-09T21:38:33Z","pushed_at":"2016-05-10T01:29:27Z","git_url":"git://github.com/Polymer/polymer-cli.git","ssh_url":"git@github.com:Polymer/polymer-cli.git","clone_url":"https://github.com/Polymer/polymer-cli.git","svn_url":"https://github.com/Polymer/polymer-cli","homepage":null,"size":118,"stargazers_count":10,"watchers_count":10,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":24,"forks":6,"open_issues":24,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Polymer/polymer-cli/pulls/65"},"html":{"href":"https://github.com/Polymer/polymer-cli/pull/65"},"issue":{"href":"https://api.github.com/repos/Polymer/polymer-cli/issues/65"},"comments":{"href":"https://api.github.com/repos/Polymer/polymer-cli/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/Polymer/polymer-cli/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/Polymer/polymer-cli/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Polymer/polymer-cli/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/Polymer/polymer-cli/statuses/4df4633dc6cdd9b868002c88a50a4f4243fbf08e"}}}}