{"action":"created","comment":{"url":"https://api.github.com/repos/markhibberd/pirate/pulls/comments/26185779","id":26185779,"diff_hunk":"@@ -196,6 +196,7 @@ case object ReadErrorEmpty extends ReadError\n case object ReadErrorNotEnoughInput extends ReadError\n case object ReadErrorTooMuchInput extends ReadError\n case class ShowHelpText(sub: Option[String]) extends ReadError\n+case class ShowVersion(version: String) extends ReadError","path":"src/main/scala/pirate/Read.scala","position":4,"original_position":4,"commit_id":"b399dbd5fc58999dd33e616a965b881b42b289c7","original_commit_id":"b399dbd5fc58999dd33e616a965b881b42b289c7","user":{"login":"etorreborre","id":10988,"avatar_url":"https://avatars.githubusercontent.com/u/10988?v=3","gravatar_id":"","url":"https://api.github.com/users/etorreborre","html_url":"https://github.com/etorreborre","followers_url":"https://api.github.com/users/etorreborre/followers","following_url":"https://api.github.com/users/etorreborre/following{/other_user}","gists_url":"https://api.github.com/users/etorreborre/gists{/gist_id}","starred_url":"https://api.github.com/users/etorreborre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etorreborre/subscriptions","organizations_url":"https://api.github.com/users/etorreborre/orgs","repos_url":"https://api.github.com/users/etorreborre/repos","events_url":"https://api.github.com/users/etorreborre/events{/privacy}","received_events_url":"https://api.github.com/users/etorreborre/received_events","type":"User","site_admin":false},"body":"I am not a big fan of that either but I don't think there is another way to do it at the moment given the overall structure of things.","created_at":"2015-03-11T02:59:01Z","updated_at":"2015-03-11T02:59:01Z","html_url":"https://github.com/markhibberd/pirate/pull/38#discussion_r26185779","pull_request_url":"https://api.github.com/repos/markhibberd/pirate/pulls/38","_links":{"self":{"href":"https://api.github.com/repos/markhibberd/pirate/pulls/comments/26185779"},"html":{"href":"https://github.com/markhibberd/pirate/pull/38#discussion_r26185779"},"pull_request":{"href":"https://api.github.com/repos/markhibberd/pirate/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/markhibberd/pirate/pulls/38","id":30908719,"html_url":"https://github.com/markhibberd/pirate/pull/38","diff_url":"https://github.com/markhibberd/pirate/pull/38.diff","patch_url":"https://github.com/markhibberd/pirate/pull/38.patch","issue_url":"https://api.github.com/repos/markhibberd/pirate/issues/38","number":38,"state":"open","locked":false,"title":"Added a version flag","user":{"login":"etorreborre","id":10988,"avatar_url":"https://avatars.githubusercontent.com/u/10988?v=3","gravatar_id":"","url":"https://api.github.com/users/etorreborre","html_url":"https://github.com/etorreborre","followers_url":"https://api.github.com/users/etorreborre/followers","following_url":"https://api.github.com/users/etorreborre/following{/other_user}","gists_url":"https://api.github.com/users/etorreborre/gists{/gist_id}","starred_url":"https://api.github.com/users/etorreborre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etorreborre/subscriptions","organizations_url":"https://api.github.com/users/etorreborre/orgs","repos_url":"https://api.github.com/users/etorreborre/repos","events_url":"https://api.github.com/users/etorreborre/events{/privacy}","received_events_url":"https://api.github.com/users/etorreborre/received_events","type":"User","site_admin":false},"body":"I also modified the Console output to be a regular output for `--help` and `--version` instead of being `std.err`.","created_at":"2015-03-11T01:27:34Z","updated_at":"2015-03-11T02:59:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0d0d0fc73e974c0a546ded1da500eace82dd9e1e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/markhibberd/pirate/pulls/38/commits","review_comments_url":"https://api.github.com/repos/markhibberd/pirate/pulls/38/comments","review_comment_url":"https://api.github.com/repos/markhibberd/pirate/pulls/comments{/number}","comments_url":"https://api.github.com/repos/markhibberd/pirate/issues/38/comments","statuses_url":"https://api.github.com/repos/markhibberd/pirate/statuses/b399dbd5fc58999dd33e616a965b881b42b289c7","head":{"label":"etorreborre:topic/version-flag","ref":"topic/version-flag","sha":"b399dbd5fc58999dd33e616a965b881b42b289c7","user":{"login":"etorreborre","id":10988,"avatar_url":"https://avatars.githubusercontent.com/u/10988?v=3","gravatar_id":"","url":"https://api.github.com/users/etorreborre","html_url":"https://github.com/etorreborre","followers_url":"https://api.github.com/users/etorreborre/followers","following_url":"https://api.github.com/users/etorreborre/following{/other_user}","gists_url":"https://api.github.com/users/etorreborre/gists{/gist_id}","starred_url":"https://api.github.com/users/etorreborre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etorreborre/subscriptions","organizations_url":"https://api.github.com/users/etorreborre/orgs","repos_url":"https://api.github.com/users/etorreborre/repos","events_url":"https://api.github.com/users/etorreborre/events{/privacy}","received_events_url":"https://api.github.com/users/etorreborre/received_events","type":"User","site_admin":false},"repo":{"id":18554715,"name":"pirate","full_name":"etorreborre/pirate","owner":{"login":"etorreborre","id":10988,"avatar_url":"https://avatars.githubusercontent.com/u/10988?v=3","gravatar_id":"","url":"https://api.github.com/users/etorreborre","html_url":"https://github.com/etorreborre","followers_url":"https://api.github.com/users/etorreborre/followers","following_url":"https://api.github.com/users/etorreborre/following{/other_user}","gists_url":"https://api.github.com/users/etorreborre/gists{/gist_id}","starred_url":"https://api.github.com/users/etorreborre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/etorreborre/subscriptions","organizations_url":"https://api.github.com/users/etorreborre/orgs","repos_url":"https://api.github.com/users/etorreborre/repos","events_url":"https://api.github.com/users/etorreborre/events{/privacy}","received_events_url":"https://api.github.com/users/etorreborre/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/etorreborre/pirate","description":"public mirror of pirate.mth.io","fork":true,"url":"https://api.github.com/repos/etorreborre/pirate","forks_url":"https://api.github.com/repos/etorreborre/pirate/forks","keys_url":"https://api.github.com/repos/etorreborre/pirate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/etorreborre/pirate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/etorreborre/pirate/teams","hooks_url":"https://api.github.com/repos/etorreborre/pirate/hooks","issue_events_url":"https://api.github.com/repos/etorreborre/pirate/issues/events{/number}","events_url":"https://api.github.com/repos/etorreborre/pirate/events","assignees_url":"https://api.github.com/repos/etorreborre/pirate/assignees{/user}","branches_url":"https://api.github.com/repos/etorreborre/pirate/branches{/branch}","tags_url":"https://api.github.com/repos/etorreborre/pirate/tags","blobs_url":"https://api.github.com/repos/etorreborre/pirate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/etorreborre/pirate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/etorreborre/pirate/git/refs{/sha}","trees_url":"https://api.github.com/repos/etorreborre/pirate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/etorreborre/pirate/statuses/{sha}","languages_url":"https://api.github.com/repos/etorreborre/pirate/languages","stargazers_url":"https://api.github.com/repos/etorreborre/pirate/stargazers","contributors_url":"https://api.github.com/repos/etorreborre/pirate/contributors","subscribers_url":"https://api.github.com/repos/etorreborre/pirate/subscribers","subscription_url":"https://api.github.com/repos/etorreborre/pirate/subscription","commits_url":"https://api.github.com/repos/etorreborre/pirate/commits{/sha}","git_commits_url":"https://api.github.com/repos/etorreborre/pirate/git/commits{/sha}","comments_url":"https://api.github.com/repos/etorreborre/pirate/comments{/number}","issue_comment_url":"https://api.github.com/repos/etorreborre/pirate/issues/comments{/number}","contents_url":"https://api.github.com/repos/etorreborre/pirate/contents/{+path}","compare_url":"https://api.github.com/repos/etorreborre/pirate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/etorreborre/pirate/merges","archive_url":"https://api.github.com/repos/etorreborre/pirate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/etorreborre/pirate/downloads","issues_url":"https://api.github.com/repos/etorreborre/pirate/issues{/number}","pulls_url":"https://api.github.com/repos/etorreborre/pirate/pulls{/number}","milestones_url":"https://api.github.com/repos/etorreborre/pirate/milestones{/number}","notifications_url":"https://api.github.com/repos/etorreborre/pirate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/etorreborre/pirate/labels{/name}","releases_url":"https://api.github.com/repos/etorreborre/pirate/releases{/id}","created_at":"2014-04-08T10:48:34Z","updated_at":"2014-10-20T05:22:47Z","pushed_at":"2015-03-11T02:33:24Z","git_url":"git://github.com/etorreborre/pirate.git","ssh_url":"git@github.com:etorreborre/pirate.git","clone_url":"https://github.com/etorreborre/pirate.git","svn_url":"https://github.com/etorreborre/pirate","homepage":"http://pirate.mth.io","size":41510,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"markhibberd:master","ref":"master","sha":"436a270dac4f32897e66e4bef06bff350622b9dc","user":{"login":"markhibberd","id":22832,"avatar_url":"https://avatars.githubusercontent.com/u/22832?v=3","gravatar_id":"","url":"https://api.github.com/users/markhibberd","html_url":"https://github.com/markhibberd","followers_url":"https://api.github.com/users/markhibberd/followers","following_url":"https://api.github.com/users/markhibberd/following{/other_user}","gists_url":"https://api.github.com/users/markhibberd/gists{/gist_id}","starred_url":"https://api.github.com/users/markhibberd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markhibberd/subscriptions","organizations_url":"https://api.github.com/users/markhibberd/orgs","repos_url":"https://api.github.com/users/markhibberd/repos","events_url":"https://api.github.com/users/markhibberd/events{/privacy}","received_events_url":"https://api.github.com/users/markhibberd/received_events","type":"User","site_admin":false},"repo":{"id":1102396,"name":"pirate","full_name":"markhibberd/pirate","owner":{"login":"markhibberd","id":22832,"avatar_url":"https://avatars.githubusercontent.com/u/22832?v=3","gravatar_id":"","url":"https://api.github.com/users/markhibberd","html_url":"https://github.com/markhibberd","followers_url":"https://api.github.com/users/markhibberd/followers","following_url":"https://api.github.com/users/markhibberd/following{/other_user}","gists_url":"https://api.github.com/users/markhibberd/gists{/gist_id}","starred_url":"https://api.github.com/users/markhibberd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markhibberd/subscriptions","organizations_url":"https://api.github.com/users/markhibberd/orgs","repos_url":"https://api.github.com/users/markhibberd/repos","events_url":"https://api.github.com/users/markhibberd/events{/privacy}","received_events_url":"https://api.github.com/users/markhibberd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/markhibberd/pirate","description":"Non-horrible command line parsing.","fork":false,"url":"https://api.github.com/repos/markhibberd/pirate","forks_url":"https://api.github.com/repos/markhibberd/pirate/forks","keys_url":"https://api.github.com/repos/markhibberd/pirate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/markhibberd/pirate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/markhibberd/pirate/teams","hooks_url":"https://api.github.com/repos/markhibberd/pirate/hooks","issue_events_url":"https://api.github.com/repos/markhibberd/pirate/issues/events{/number}","events_url":"https://api.github.com/repos/markhibberd/pirate/events","assignees_url":"https://api.github.com/repos/markhibberd/pirate/assignees{/user}","branches_url":"https://api.github.com/repos/markhibberd/pirate/branches{/branch}","tags_url":"https://api.github.com/repos/markhibberd/pirate/tags","blobs_url":"https://api.github.com/repos/markhibberd/pirate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/markhibberd/pirate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/markhibberd/pirate/git/refs{/sha}","trees_url":"https://api.github.com/repos/markhibberd/pirate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/markhibberd/pirate/statuses/{sha}","languages_url":"https://api.github.com/repos/markhibberd/pirate/languages","stargazers_url":"https://api.github.com/repos/markhibberd/pirate/stargazers","contributors_url":"https://api.github.com/repos/markhibberd/pirate/contributors","subscribers_url":"https://api.github.com/repos/markhibberd/pirate/subscribers","subscription_url":"https://api.github.com/repos/markhibberd/pirate/subscription","commits_url":"https://api.github.com/repos/markhibberd/pirate/commits{/sha}","git_commits_url":"https://api.github.com/repos/markhibberd/pirate/git/commits{/sha}","comments_url":"https://api.github.com/repos/markhibberd/pirate/comments{/number}","issue_comment_url":"https://api.github.com/repos/markhibberd/pirate/issues/comments{/number}","contents_url":"https://api.github.com/repos/markhibberd/pirate/contents/{+path}","compare_url":"https://api.github.com/repos/markhibberd/pirate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/markhibberd/pirate/merges","archive_url":"https://api.github.com/repos/markhibberd/pirate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/markhibberd/pirate/downloads","issues_url":"https://api.github.com/repos/markhibberd/pirate/issues{/number}","pulls_url":"https://api.github.com/repos/markhibberd/pirate/pulls{/number}","milestones_url":"https://api.github.com/repos/markhibberd/pirate/milestones{/number}","notifications_url":"https://api.github.com/repos/markhibberd/pirate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/markhibberd/pirate/labels{/name}","releases_url":"https://api.github.com/repos/markhibberd/pirate/releases{/id}","created_at":"2010-11-22T13:49:35Z","updated_at":"2015-03-10T23:33:36Z","pushed_at":"2015-03-10T23:33:39Z","git_url":"git://github.com/markhibberd/pirate.git","ssh_url":"git@github.com:markhibberd/pirate.git","clone_url":"https://github.com/markhibberd/pirate.git","svn_url":"https://github.com/markhibberd/pirate","homepage":"https://github.com/markhibberd/pirate","size":42065,"stargazers_count":13,"watchers_count":13,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":11,"forks":4,"open_issues":11,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/markhibberd/pirate/pulls/38"},"html":{"href":"https://github.com/markhibberd/pirate/pull/38"},"issue":{"href":"https://api.github.com/repos/markhibberd/pirate/issues/38"},"comments":{"href":"https://api.github.com/repos/markhibberd/pirate/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/markhibberd/pirate/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/markhibberd/pirate/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/markhibberd/pirate/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/markhibberd/pirate/statuses/b399dbd5fc58999dd33e616a965b881b42b289c7"}}}}