{"action":"created","comment":{"url":"https://api.github.com/repos/soutaro/steep/pulls/comments/228292553","pull_request_review_id":168533061,"id":228292553,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyODI5MjU1Mw==","diff_hunk":"@@ -20,6 +20,10 @@ def self.available_commands\n     end\n \n     def setup_global_options\n+      OptionParser.new do |opts|\n+        opts.version = Steep::VERSION\n+      end.parse(argv)\n+","path":"lib/steep/cli.rb","position":18,"original_position":7,"commit_id":"9901ef652f2289ccf36447a6614eefe67aed74e3","original_commit_id":"a271a00fc78cc01d57b1a5c97b38471ca54cea90","user":{"login":"soutaro","id":139089,"node_id":"MDQ6VXNlcjEzOTA4OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/139089?v=4","gravatar_id":"","url":"https://api.github.com/users/soutaro","html_url":"https://github.com/soutaro","followers_url":"https://api.github.com/users/soutaro/followers","following_url":"https://api.github.com/users/soutaro/following{/other_user}","gists_url":"https://api.github.com/users/soutaro/gists{/gist_id}","starred_url":"https://api.github.com/users/soutaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soutaro/subscriptions","organizations_url":"https://api.github.com/users/soutaro/orgs","repos_url":"https://api.github.com/users/soutaro/repos","events_url":"https://api.github.com/users/soutaro/events{/privacy}","received_events_url":"https://api.github.com/users/soutaro/received_events","type":"User","site_admin":false},"body":"I mean you don't have to do anything in `setup_global_options`. Just leave it empty.","created_at":"2018-10-25T18:47:41Z","updated_at":"2018-10-25T18:47:41Z","html_url":"https://github.com/soutaro/steep/pull/57#discussion_r228292553","pull_request_url":"https://api.github.com/repos/soutaro/steep/pulls/57","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/soutaro/steep/pulls/comments/228292553"},"html":{"href":"https://github.com/soutaro/steep/pull/57#discussion_r228292553"},"pull_request":{"href":"https://api.github.com/repos/soutaro/steep/pulls/57"}},"in_reply_to_id":223687566},"pull_request":{"url":"https://api.github.com/repos/soutaro/steep/pulls/57","id":221426272,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIxNDI2Mjcy","html_url":"https://github.com/soutaro/steep/pull/57","diff_url":"https://github.com/soutaro/steep/pull/57.diff","patch_url":"https://github.com/soutaro/steep/pull/57.patch","issue_url":"https://api.github.com/repos/soutaro/steep/issues/57","number":57,"state":"open","locked":false,"title":"Add option to show Steep's version","user":{"login":"ybiquitous","id":473530,"node_id":"MDQ6VXNlcjQ3MzUzMA==","avatar_url":"https://avatars2.githubusercontent.com/u/473530?v=4","gravatar_id":"","url":"https://api.github.com/users/ybiquitous","html_url":"https://github.com/ybiquitous","followers_url":"https://api.github.com/users/ybiquitous/followers","following_url":"https://api.github.com/users/ybiquitous/following{/other_user}","gists_url":"https://api.github.com/users/ybiquitous/gists{/gist_id}","starred_url":"https://api.github.com/users/ybiquitous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ybiquitous/subscriptions","organizations_url":"https://api.github.com/users/ybiquitous/orgs","repos_url":"https://api.github.com/users/ybiquitous/repos","events_url":"https://api.github.com/users/ybiquitous/events{/privacy}","received_events_url":"https://api.github.com/users/ybiquitous/received_events","type":"User","site_admin":false},"body":"This PR adds a new option `--version` (`-v`), which only outputs the Steep version to STDOUT.\r\n\r\nE.g.\r\n\r\n```\r\n$ steep --version\r\nsteep 0.7.0\r\n\r\n$ steep -v\r\nsteep 0.7.0\r\n```","created_at":"2018-10-09T12:50:24Z","updated_at":"2018-10-25T18:47:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bd41dd3a0c7194c2ba5e713b46a2a7a3d737aee3","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/soutaro/steep/pulls/57/commits","review_comments_url":"https://api.github.com/repos/soutaro/steep/pulls/57/comments","review_comment_url":"https://api.github.com/repos/soutaro/steep/pulls/comments{/number}","comments_url":"https://api.github.com/repos/soutaro/steep/issues/57/comments","statuses_url":"https://api.github.com/repos/soutaro/steep/statuses/9901ef652f2289ccf36447a6614eefe67aed74e3","head":{"label":"ybiquitous:add-version-option","ref":"add-version-option","sha":"9901ef652f2289ccf36447a6614eefe67aed74e3","user":{"login":"ybiquitous","id":473530,"node_id":"MDQ6VXNlcjQ3MzUzMA==","avatar_url":"https://avatars2.githubusercontent.com/u/473530?v=4","gravatar_id":"","url":"https://api.github.com/users/ybiquitous","html_url":"https://github.com/ybiquitous","followers_url":"https://api.github.com/users/ybiquitous/followers","following_url":"https://api.github.com/users/ybiquitous/following{/other_user}","gists_url":"https://api.github.com/users/ybiquitous/gists{/gist_id}","starred_url":"https://api.github.com/users/ybiquitous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ybiquitous/subscriptions","organizations_url":"https://api.github.com/users/ybiquitous/orgs","repos_url":"https://api.github.com/users/ybiquitous/repos","events_url":"https://api.github.com/users/ybiquitous/events{/privacy}","received_events_url":"https://api.github.com/users/ybiquitous/received_events","type":"User","site_admin":false},"repo":{"id":144441947,"node_id":"MDEwOlJlcG9zaXRvcnkxNDQ0NDE5NDc=","name":"steep","full_name":"ybiquitous/steep","private":false,"owner":{"login":"ybiquitous","id":473530,"node_id":"MDQ6VXNlcjQ3MzUzMA==","avatar_url":"https://avatars2.githubusercontent.com/u/473530?v=4","gravatar_id":"","url":"https://api.github.com/users/ybiquitous","html_url":"https://github.com/ybiquitous","followers_url":"https://api.github.com/users/ybiquitous/followers","following_url":"https://api.github.com/users/ybiquitous/following{/other_user}","gists_url":"https://api.github.com/users/ybiquitous/gists{/gist_id}","starred_url":"https://api.github.com/users/ybiquitous/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ybiquitous/subscriptions","organizations_url":"https://api.github.com/users/ybiquitous/orgs","repos_url":"https://api.github.com/users/ybiquitous/repos","events_url":"https://api.github.com/users/ybiquitous/events{/privacy}","received_events_url":"https://api.github.com/users/ybiquitous/received_events","type":"User","site_admin":false},"html_url":"https://github.com/ybiquitous/steep","description":"Gradual Typing for Ruby","fork":true,"url":"https://api.github.com/repos/ybiquitous/steep","forks_url":"https://api.github.com/repos/ybiquitous/steep/forks","keys_url":"https://api.github.com/repos/ybiquitous/steep/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ybiquitous/steep/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ybiquitous/steep/teams","hooks_url":"https://api.github.com/repos/ybiquitous/steep/hooks","issue_events_url":"https://api.github.com/repos/ybiquitous/steep/issues/events{/number}","events_url":"https://api.github.com/repos/ybiquitous/steep/events","assignees_url":"https://api.github.com/repos/ybiquitous/steep/assignees{/user}","branches_url":"https://api.github.com/repos/ybiquitous/steep/branches{/branch}","tags_url":"https://api.github.com/repos/ybiquitous/steep/tags","blobs_url":"https://api.github.com/repos/ybiquitous/steep/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ybiquitous/steep/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ybiquitous/steep/git/refs{/sha}","trees_url":"https://api.github.com/repos/ybiquitous/steep/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ybiquitous/steep/statuses/{sha}","languages_url":"https://api.github.com/repos/ybiquitous/steep/languages","stargazers_url":"https://api.github.com/repos/ybiquitous/steep/stargazers","contributors_url":"https://api.github.com/repos/ybiquitous/steep/contributors","subscribers_url":"https://api.github.com/repos/ybiquitous/steep/subscribers","subscription_url":"https://api.github.com/repos/ybiquitous/steep/subscription","commits_url":"https://api.github.com/repos/ybiquitous/steep/commits{/sha}","git_commits_url":"https://api.github.com/repos/ybiquitous/steep/git/commits{/sha}","comments_url":"https://api.github.com/repos/ybiquitous/steep/comments{/number}","issue_comment_url":"https://api.github.com/repos/ybiquitous/steep/issues/comments{/number}","contents_url":"https://api.github.com/repos/ybiquitous/steep/contents/{+path}","compare_url":"https://api.github.com/repos/ybiquitous/steep/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ybiquitous/steep/merges","archive_url":"https://api.github.com/repos/ybiquitous/steep/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ybiquitous/steep/downloads","issues_url":"https://api.github.com/repos/ybiquitous/steep/issues{/number}","pulls_url":"https://api.github.com/repos/ybiquitous/steep/pulls{/number}","milestones_url":"https://api.github.com/repos/ybiquitous/steep/milestones{/number}","notifications_url":"https://api.github.com/repos/ybiquitous/steep/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ybiquitous/steep/labels{/name}","releases_url":"https://api.github.com/repos/ybiquitous/steep/releases{/id}","deployments_url":"https://api.github.com/repos/ybiquitous/steep/deployments","created_at":"2018-08-12T06:00:12Z","updated_at":"2018-10-23T01:19:15Z","pushed_at":"2018-10-25T11:07:58Z","git_url":"git://github.com/ybiquitous/steep.git","ssh_url":"git@github.com:ybiquitous/steep.git","clone_url":"https://github.com/ybiquitous/steep.git","svn_url":"https://github.com/ybiquitous/steep","homepage":"","size":848,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"soutaro:master","ref":"master","sha":"91734063585f39ec1c4cfb3fa9d779b8ebccd498","user":{"login":"soutaro","id":139089,"node_id":"MDQ6VXNlcjEzOTA4OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/139089?v=4","gravatar_id":"","url":"https://api.github.com/users/soutaro","html_url":"https://github.com/soutaro","followers_url":"https://api.github.com/users/soutaro/followers","following_url":"https://api.github.com/users/soutaro/following{/other_user}","gists_url":"https://api.github.com/users/soutaro/gists{/gist_id}","starred_url":"https://api.github.com/users/soutaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soutaro/subscriptions","organizations_url":"https://api.github.com/users/soutaro/orgs","repos_url":"https://api.github.com/users/soutaro/repos","events_url":"https://api.github.com/users/soutaro/events{/privacy}","received_events_url":"https://api.github.com/users/soutaro/received_events","type":"User","site_admin":false},"repo":{"id":86352893,"node_id":"MDEwOlJlcG9zaXRvcnk4NjM1Mjg5Mw==","name":"steep","full_name":"soutaro/steep","private":false,"owner":{"login":"soutaro","id":139089,"node_id":"MDQ6VXNlcjEzOTA4OQ==","avatar_url":"https://avatars3.githubusercontent.com/u/139089?v=4","gravatar_id":"","url":"https://api.github.com/users/soutaro","html_url":"https://github.com/soutaro","followers_url":"https://api.github.com/users/soutaro/followers","following_url":"https://api.github.com/users/soutaro/following{/other_user}","gists_url":"https://api.github.com/users/soutaro/gists{/gist_id}","starred_url":"https://api.github.com/users/soutaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soutaro/subscriptions","organizations_url":"https://api.github.com/users/soutaro/orgs","repos_url":"https://api.github.com/users/soutaro/repos","events_url":"https://api.github.com/users/soutaro/events{/privacy}","received_events_url":"https://api.github.com/users/soutaro/received_events","type":"User","site_admin":false},"html_url":"https://github.com/soutaro/steep","description":"Gradual Typing for Ruby","fork":false,"url":"https://api.github.com/repos/soutaro/steep","forks_url":"https://api.github.com/repos/soutaro/steep/forks","keys_url":"https://api.github.com/repos/soutaro/steep/keys{/key_id}","collaborators_url":"https://api.github.com/repos/soutaro/steep/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/soutaro/steep/teams","hooks_url":"https://api.github.com/repos/soutaro/steep/hooks","issue_events_url":"https://api.github.com/repos/soutaro/steep/issues/events{/number}","events_url":"https://api.github.com/repos/soutaro/steep/events","assignees_url":"https://api.github.com/repos/soutaro/steep/assignees{/user}","branches_url":"https://api.github.com/repos/soutaro/steep/branches{/branch}","tags_url":"https://api.github.com/repos/soutaro/steep/tags","blobs_url":"https://api.github.com/repos/soutaro/steep/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/soutaro/steep/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/soutaro/steep/git/refs{/sha}","trees_url":"https://api.github.com/repos/soutaro/steep/git/trees{/sha}","statuses_url":"https://api.github.com/repos/soutaro/steep/statuses/{sha}","languages_url":"https://api.github.com/repos/soutaro/steep/languages","stargazers_url":"https://api.github.com/repos/soutaro/steep/stargazers","contributors_url":"https://api.github.com/repos/soutaro/steep/contributors","subscribers_url":"https://api.github.com/repos/soutaro/steep/subscribers","subscription_url":"https://api.github.com/repos/soutaro/steep/subscription","commits_url":"https://api.github.com/repos/soutaro/steep/commits{/sha}","git_commits_url":"https://api.github.com/repos/soutaro/steep/git/commits{/sha}","comments_url":"https://api.github.com/repos/soutaro/steep/comments{/number}","issue_comment_url":"https://api.github.com/repos/soutaro/steep/issues/comments{/number}","contents_url":"https://api.github.com/repos/soutaro/steep/contents/{+path}","compare_url":"https://api.github.com/repos/soutaro/steep/compare/{base}...{head}","merges_url":"https://api.github.com/repos/soutaro/steep/merges","archive_url":"https://api.github.com/repos/soutaro/steep/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/soutaro/steep/downloads","issues_url":"https://api.github.com/repos/soutaro/steep/issues{/number}","pulls_url":"https://api.github.com/repos/soutaro/steep/pulls{/number}","milestones_url":"https://api.github.com/repos/soutaro/steep/milestones{/number}","notifications_url":"https://api.github.com/repos/soutaro/steep/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/soutaro/steep/labels{/name}","releases_url":"https://api.github.com/repos/soutaro/steep/releases{/id}","deployments_url":"https://api.github.com/repos/soutaro/steep/deployments","created_at":"2017-03-27T15:34:46Z","updated_at":"2018-10-22T23:48:36Z","pushed_at":"2018-10-25T11:07:59Z","git_url":"git://github.com/soutaro/steep.git","ssh_url":"git@github.com:soutaro/steep.git","clone_url":"https://github.com/soutaro/steep.git","svn_url":"https://github.com/soutaro/steep","homepage":"","size":829,"stargazers_count":348,"watchers_count":348,"language":"Ruby","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":14,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":14,"open_issues":8,"watchers":348,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/soutaro/steep/pulls/57"},"html":{"href":"https://github.com/soutaro/steep/pull/57"},"issue":{"href":"https://api.github.com/repos/soutaro/steep/issues/57"},"comments":{"href":"https://api.github.com/repos/soutaro/steep/issues/57/comments"},"review_comments":{"href":"https://api.github.com/repos/soutaro/steep/pulls/57/comments"},"review_comment":{"href":"https://api.github.com/repos/soutaro/steep/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/soutaro/steep/pulls/57/commits"},"statuses":{"href":"https://api.github.com/repos/soutaro/steep/statuses/9901ef652f2289ccf36447a6614eefe67aed74e3"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"soutaro"}}