{"action":"created","comment":{"url":"https://api.github.com/repos/meskyanichi/commander/pulls/comments/54105189","id":54105189,"diff_hunk":"@@ -11,7 +11,15 @@ class Commander::Flags\n     flags.each { |flag| yield flag }\n   end\n \n-  def add(flag)\n+  def add(*multi)\n+    add multi.to_a\n+  end\n+\n+  def add(multi : Array(Commander::Flag))","path":"src/commander/flags.cr","position":9,"original_position":9,"commit_id":"d46674900c4f1c0e179f143d4e2a4d1c71bcbc1c","original_commit_id":"d46674900c4f1c0e179f143d4e2a4d1c71bcbc1c","user":{"login":"meskyanichi","id":54708,"avatar_url":"https://avatars.githubusercontent.com/u/54708?v=3","gravatar_id":"","url":"https://api.github.com/users/meskyanichi","html_url":"https://github.com/meskyanichi","followers_url":"https://api.github.com/users/meskyanichi/followers","following_url":"https://api.github.com/users/meskyanichi/following{/other_user}","gists_url":"https://api.github.com/users/meskyanichi/gists{/gist_id}","starred_url":"https://api.github.com/users/meskyanichi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meskyanichi/subscriptions","organizations_url":"https://api.github.com/users/meskyanichi/orgs","repos_url":"https://api.github.com/users/meskyanichi/repos","events_url":"https://api.github.com/users/meskyanichi/events{/privacy}","received_events_url":"https://api.github.com/users/meskyanichi/received_events","type":"User","site_admin":false},"body":"Rename `multi` to `flags` for clarity.","created_at":"2016-02-25T14:49:09Z","updated_at":"2016-02-25T14:49:09Z","html_url":"https://github.com/meskyanichi/commander/pull/3#discussion_r54105189","pull_request_url":"https://api.github.com/repos/meskyanichi/commander/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/meskyanichi/commander/pulls/comments/54105189"},"html":{"href":"https://github.com/meskyanichi/commander/pull/3#discussion_r54105189"},"pull_request":{"href":"https://api.github.com/repos/meskyanichi/commander/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/meskyanichi/commander/pulls/3","id":60596700,"html_url":"https://github.com/meskyanichi/commander/pull/3","diff_url":"https://github.com/meskyanichi/commander/pull/3.diff","patch_url":"https://github.com/meskyanichi/commander/pull/3.patch","issue_url":"https://api.github.com/repos/meskyanichi/commander/issues/3","number":3,"state":"open","locked":false,"title":"addition add methods","user":{"login":"plukevdh","id":16054,"avatar_url":"https://avatars.githubusercontent.com/u/16054?v=3","gravatar_id":"","url":"https://api.github.com/users/plukevdh","html_url":"https://github.com/plukevdh","followers_url":"https://api.github.com/users/plukevdh/followers","following_url":"https://api.github.com/users/plukevdh/following{/other_user}","gists_url":"https://api.github.com/users/plukevdh/gists{/gist_id}","starred_url":"https://api.github.com/users/plukevdh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plukevdh/subscriptions","organizations_url":"https://api.github.com/users/plukevdh/orgs","repos_url":"https://api.github.com/users/plukevdh/repos","events_url":"https://api.github.com/users/plukevdh/events{/privacy}","received_events_url":"https://api.github.com/users/plukevdh/received_events","type":"User","site_admin":false},"body":"some useful helpers to allow flags to be predefined and passed in _en masse_ to a command.","created_at":"2016-02-24T23:16:50Z","updated_at":"2016-02-25T14:49:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"49ffc9e5a619768817dc07e16d080065b638fbf3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/meskyanichi/commander/pulls/3/commits","review_comments_url":"https://api.github.com/repos/meskyanichi/commander/pulls/3/comments","review_comment_url":"https://api.github.com/repos/meskyanichi/commander/pulls/comments{/number}","comments_url":"https://api.github.com/repos/meskyanichi/commander/issues/3/comments","statuses_url":"https://api.github.com/repos/meskyanichi/commander/statuses/d46674900c4f1c0e179f143d4e2a4d1c71bcbc1c","head":{"label":"plukevdh:add-helpers","ref":"add-helpers","sha":"d46674900c4f1c0e179f143d4e2a4d1c71bcbc1c","user":{"login":"plukevdh","id":16054,"avatar_url":"https://avatars.githubusercontent.com/u/16054?v=3","gravatar_id":"","url":"https://api.github.com/users/plukevdh","html_url":"https://github.com/plukevdh","followers_url":"https://api.github.com/users/plukevdh/followers","following_url":"https://api.github.com/users/plukevdh/following{/other_user}","gists_url":"https://api.github.com/users/plukevdh/gists{/gist_id}","starred_url":"https://api.github.com/users/plukevdh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plukevdh/subscriptions","organizations_url":"https://api.github.com/users/plukevdh/orgs","repos_url":"https://api.github.com/users/plukevdh/repos","events_url":"https://api.github.com/users/plukevdh/events{/privacy}","received_events_url":"https://api.github.com/users/plukevdh/received_events","type":"User","site_admin":false},"repo":{"id":52481493,"name":"commander","full_name":"plukevdh/commander","owner":{"login":"plukevdh","id":16054,"avatar_url":"https://avatars.githubusercontent.com/u/16054?v=3","gravatar_id":"","url":"https://api.github.com/users/plukevdh","html_url":"https://github.com/plukevdh","followers_url":"https://api.github.com/users/plukevdh/followers","following_url":"https://api.github.com/users/plukevdh/following{/other_user}","gists_url":"https://api.github.com/users/plukevdh/gists{/gist_id}","starred_url":"https://api.github.com/users/plukevdh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plukevdh/subscriptions","organizations_url":"https://api.github.com/users/plukevdh/orgs","repos_url":"https://api.github.com/users/plukevdh/repos","events_url":"https://api.github.com/users/plukevdh/events{/privacy}","received_events_url":"https://api.github.com/users/plukevdh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/plukevdh/commander","description":"Command-line interface builder for the Crystal programming language.","fork":true,"url":"https://api.github.com/repos/plukevdh/commander","forks_url":"https://api.github.com/repos/plukevdh/commander/forks","keys_url":"https://api.github.com/repos/plukevdh/commander/keys{/key_id}","collaborators_url":"https://api.github.com/repos/plukevdh/commander/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/plukevdh/commander/teams","hooks_url":"https://api.github.com/repos/plukevdh/commander/hooks","issue_events_url":"https://api.github.com/repos/plukevdh/commander/issues/events{/number}","events_url":"https://api.github.com/repos/plukevdh/commander/events","assignees_url":"https://api.github.com/repos/plukevdh/commander/assignees{/user}","branches_url":"https://api.github.com/repos/plukevdh/commander/branches{/branch}","tags_url":"https://api.github.com/repos/plukevdh/commander/tags","blobs_url":"https://api.github.com/repos/plukevdh/commander/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/plukevdh/commander/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/plukevdh/commander/git/refs{/sha}","trees_url":"https://api.github.com/repos/plukevdh/commander/git/trees{/sha}","statuses_url":"https://api.github.com/repos/plukevdh/commander/statuses/{sha}","languages_url":"https://api.github.com/repos/plukevdh/commander/languages","stargazers_url":"https://api.github.com/repos/plukevdh/commander/stargazers","contributors_url":"https://api.github.com/repos/plukevdh/commander/contributors","subscribers_url":"https://api.github.com/repos/plukevdh/commander/subscribers","subscription_url":"https://api.github.com/repos/plukevdh/commander/subscription","commits_url":"https://api.github.com/repos/plukevdh/commander/commits{/sha}","git_commits_url":"https://api.github.com/repos/plukevdh/commander/git/commits{/sha}","comments_url":"https://api.github.com/repos/plukevdh/commander/comments{/number}","issue_comment_url":"https://api.github.com/repos/plukevdh/commander/issues/comments{/number}","contents_url":"https://api.github.com/repos/plukevdh/commander/contents/{+path}","compare_url":"https://api.github.com/repos/plukevdh/commander/compare/{base}...{head}","merges_url":"https://api.github.com/repos/plukevdh/commander/merges","archive_url":"https://api.github.com/repos/plukevdh/commander/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/plukevdh/commander/downloads","issues_url":"https://api.github.com/repos/plukevdh/commander/issues{/number}","pulls_url":"https://api.github.com/repos/plukevdh/commander/pulls{/number}","milestones_url":"https://api.github.com/repos/plukevdh/commander/milestones{/number}","notifications_url":"https://api.github.com/repos/plukevdh/commander/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/plukevdh/commander/labels{/name}","releases_url":"https://api.github.com/repos/plukevdh/commander/releases{/id}","deployments_url":"https://api.github.com/repos/plukevdh/commander/deployments","created_at":"2016-02-24T23:15:55Z","updated_at":"2016-02-24T23:15:55Z","pushed_at":"2016-02-24T23:16:23Z","git_url":"git://github.com/plukevdh/commander.git","ssh_url":"git@github.com:plukevdh/commander.git","clone_url":"https://github.com/plukevdh/commander.git","svn_url":"https://github.com/plukevdh/commander","homepage":"http://meskyanichi.github.io/commander","size":25,"stargazers_count":0,"watchers_count":0,"language":"Crystal","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"meskyanichi:master","ref":"master","sha":"b8b01c64b9177b47790223685b459dc3616efe74","user":{"login":"meskyanichi","id":54708,"avatar_url":"https://avatars.githubusercontent.com/u/54708?v=3","gravatar_id":"","url":"https://api.github.com/users/meskyanichi","html_url":"https://github.com/meskyanichi","followers_url":"https://api.github.com/users/meskyanichi/followers","following_url":"https://api.github.com/users/meskyanichi/following{/other_user}","gists_url":"https://api.github.com/users/meskyanichi/gists{/gist_id}","starred_url":"https://api.github.com/users/meskyanichi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meskyanichi/subscriptions","organizations_url":"https://api.github.com/users/meskyanichi/orgs","repos_url":"https://api.github.com/users/meskyanichi/repos","events_url":"https://api.github.com/users/meskyanichi/events{/privacy}","received_events_url":"https://api.github.com/users/meskyanichi/received_events","type":"User","site_admin":false},"repo":{"id":46038851,"name":"commander","full_name":"meskyanichi/commander","owner":{"login":"meskyanichi","id":54708,"avatar_url":"https://avatars.githubusercontent.com/u/54708?v=3","gravatar_id":"","url":"https://api.github.com/users/meskyanichi","html_url":"https://github.com/meskyanichi","followers_url":"https://api.github.com/users/meskyanichi/followers","following_url":"https://api.github.com/users/meskyanichi/following{/other_user}","gists_url":"https://api.github.com/users/meskyanichi/gists{/gist_id}","starred_url":"https://api.github.com/users/meskyanichi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/meskyanichi/subscriptions","organizations_url":"https://api.github.com/users/meskyanichi/orgs","repos_url":"https://api.github.com/users/meskyanichi/repos","events_url":"https://api.github.com/users/meskyanichi/events{/privacy}","received_events_url":"https://api.github.com/users/meskyanichi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/meskyanichi/commander","description":"Command-line interface builder for the Crystal programming language.","fork":false,"url":"https://api.github.com/repos/meskyanichi/commander","forks_url":"https://api.github.com/repos/meskyanichi/commander/forks","keys_url":"https://api.github.com/repos/meskyanichi/commander/keys{/key_id}","collaborators_url":"https://api.github.com/repos/meskyanichi/commander/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/meskyanichi/commander/teams","hooks_url":"https://api.github.com/repos/meskyanichi/commander/hooks","issue_events_url":"https://api.github.com/repos/meskyanichi/commander/issues/events{/number}","events_url":"https://api.github.com/repos/meskyanichi/commander/events","assignees_url":"https://api.github.com/repos/meskyanichi/commander/assignees{/user}","branches_url":"https://api.github.com/repos/meskyanichi/commander/branches{/branch}","tags_url":"https://api.github.com/repos/meskyanichi/commander/tags","blobs_url":"https://api.github.com/repos/meskyanichi/commander/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/meskyanichi/commander/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/meskyanichi/commander/git/refs{/sha}","trees_url":"https://api.github.com/repos/meskyanichi/commander/git/trees{/sha}","statuses_url":"https://api.github.com/repos/meskyanichi/commander/statuses/{sha}","languages_url":"https://api.github.com/repos/meskyanichi/commander/languages","stargazers_url":"https://api.github.com/repos/meskyanichi/commander/stargazers","contributors_url":"https://api.github.com/repos/meskyanichi/commander/contributors","subscribers_url":"https://api.github.com/repos/meskyanichi/commander/subscribers","subscription_url":"https://api.github.com/repos/meskyanichi/commander/subscription","commits_url":"https://api.github.com/repos/meskyanichi/commander/commits{/sha}","git_commits_url":"https://api.github.com/repos/meskyanichi/commander/git/commits{/sha}","comments_url":"https://api.github.com/repos/meskyanichi/commander/comments{/number}","issue_comment_url":"https://api.github.com/repos/meskyanichi/commander/issues/comments{/number}","contents_url":"https://api.github.com/repos/meskyanichi/commander/contents/{+path}","compare_url":"https://api.github.com/repos/meskyanichi/commander/compare/{base}...{head}","merges_url":"https://api.github.com/repos/meskyanichi/commander/merges","archive_url":"https://api.github.com/repos/meskyanichi/commander/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/meskyanichi/commander/downloads","issues_url":"https://api.github.com/repos/meskyanichi/commander/issues{/number}","pulls_url":"https://api.github.com/repos/meskyanichi/commander/pulls{/number}","milestones_url":"https://api.github.com/repos/meskyanichi/commander/milestones{/number}","notifications_url":"https://api.github.com/repos/meskyanichi/commander/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/meskyanichi/commander/labels{/name}","releases_url":"https://api.github.com/repos/meskyanichi/commander/releases{/id}","deployments_url":"https://api.github.com/repos/meskyanichi/commander/deployments","created_at":"2015-11-12T08:14:20Z","updated_at":"2016-02-19T05:48:01Z","pushed_at":"2016-02-24T23:16:51Z","git_url":"git://github.com/meskyanichi/commander.git","ssh_url":"git@github.com:meskyanichi/commander.git","clone_url":"https://github.com/meskyanichi/commander.git","svn_url":"https://github.com/meskyanichi/commander","homepage":"http://meskyanichi.github.io/commander","size":24,"stargazers_count":23,"watchers_count":23,"language":"Crystal","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":23,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/meskyanichi/commander/pulls/3"},"html":{"href":"https://github.com/meskyanichi/commander/pull/3"},"issue":{"href":"https://api.github.com/repos/meskyanichi/commander/issues/3"},"comments":{"href":"https://api.github.com/repos/meskyanichi/commander/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/meskyanichi/commander/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/meskyanichi/commander/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/meskyanichi/commander/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/meskyanichi/commander/statuses/d46674900c4f1c0e179f143d4e2a4d1c71bcbc1c"}}}}