{"action":"created","comment":{"url":"https://api.github.com/repos/markhibberd/pirate/pulls/comments/32385748","id":32385748,"diff_hunk":"@@ -1,4 +1,31 @@\n package pirate\n \n-sealed trait Prefs\n-case object NullPrefs extends Prefs\n+/**\n+ * Prefs provides configuration options for generating\n+ * a usage string as well as parser behaviour.\n+ */\n+case class Prefs(\n+  backtrack: Boolean,\n+  separateTopLevels: Boolean,\n+  condenseSynopsis: Boolean,\n+  usageOnError: Boolean,\n+  flagIndent: Int,\n+  descIndent: Int,\n+  width: Int\n+)\n+\n+/**\n+ * Default preferences\n+ *  - Explicit synopsis.\n+ *  - 8/16 indents\n+ *  - 80 width\n+ */\n+object NullPrefs extends Prefs(","path":"src/main/scala/pirate/Prefs.scala","position":25,"original_position":25,"commit_id":"e6b85112f42b4062bca788e62a3a24712d160f5f","original_commit_id":"e6b85112f42b4062bca788e62a3a24712d160f5f","user":{"login":"charleso","id":31059,"avatar_url":"https://avatars.githubusercontent.com/u/31059?v=3","gravatar_id":"","url":"https://api.github.com/users/charleso","html_url":"https://github.com/charleso","followers_url":"https://api.github.com/users/charleso/followers","following_url":"https://api.github.com/users/charleso/following{/other_user}","gists_url":"https://api.github.com/users/charleso/gists{/gist_id}","starred_url":"https://api.github.com/users/charleso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charleso/subscriptions","organizations_url":"https://api.github.com/users/charleso/orgs","repos_url":"https://api.github.com/users/charleso/repos","events_url":"https://api.github.com/users/charleso/events{/privacy}","received_events_url":"https://api.github.com/users/charleso/received_events","type":"User","site_admin":false},"body":"Just a note - this looks a little funny. You don't normally extend case classes (I actually thought you couldn't any more). Normally it would just be an object function.","created_at":"2015-06-14T23:17:18Z","updated_at":"2015-06-14T23:17:18Z","html_url":"https://github.com/markhibberd/pirate/pull/52#discussion_r32385748","pull_request_url":"https://api.github.com/repos/markhibberd/pirate/pulls/52","_links":{"self":{"href":"https://api.github.com/repos/markhibberd/pirate/pulls/comments/32385748"},"html":{"href":"https://github.com/markhibberd/pirate/pull/52#discussion_r32385748"},"pull_request":{"href":"https://api.github.com/repos/markhibberd/pirate/pulls/52"}}},"pull_request":{"url":"https://api.github.com/repos/markhibberd/pirate/pulls/52","id":36270028,"html_url":"https://github.com/markhibberd/pirate/pull/52","diff_url":"https://github.com/markhibberd/pirate/pull/52.diff","patch_url":"https://github.com/markhibberd/pirate/pull/52.patch","issue_url":"https://api.github.com/repos/markhibberd/pirate/issues/52","number":52,"state":"open","locked":false,"title":"Use parser preferences, and allow them to be overridden in the mains","user":{"login":"HuwCampbell","id":5205457,"avatar_url":"https://avatars.githubusercontent.com/u/5205457?v=3","gravatar_id":"","url":"https://api.github.com/users/HuwCampbell","html_url":"https://github.com/HuwCampbell","followers_url":"https://api.github.com/users/HuwCampbell/followers","following_url":"https://api.github.com/users/HuwCampbell/following{/other_user}","gists_url":"https://api.github.com/users/HuwCampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/HuwCampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HuwCampbell/subscriptions","organizations_url":"https://api.github.com/users/HuwCampbell/orgs","repos_url":"https://api.github.com/users/HuwCampbell/repos","events_url":"https://api.github.com/users/HuwCampbell/events{/privacy}","received_events_url":"https://api.github.com/users/HuwCampbell/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-27T05:18:50Z","updated_at":"2015-06-14T23:17:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1d2fe4b352ef52687222f00356379b628a2f3eb6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/markhibberd/pirate/pulls/52/commits","review_comments_url":"https://api.github.com/repos/markhibberd/pirate/pulls/52/comments","review_comment_url":"https://api.github.com/repos/markhibberd/pirate/pulls/comments{/number}","comments_url":"https://api.github.com/repos/markhibberd/pirate/issues/52/comments","statuses_url":"https://api.github.com/repos/markhibberd/pirate/statuses/e6b85112f42b4062bca788e62a3a24712d160f5f","head":{"label":"markhibberd:topic/preferences","ref":"topic/preferences","sha":"e6b85112f42b4062bca788e62a3a24712d160f5f","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-06-08T11:59:24Z","pushed_at":"2015-05-31T07:57:52Z","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":42616,"stargazers_count":27,"watchers_count":27,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":9,"forks":7,"open_issues":9,"watchers":27,"default_branch":"master"}},"base":{"label":"markhibberd:master","ref":"master","sha":"9db90f4954584df51b7c49bbbb96d9d68586b848","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-06-08T11:59:24Z","pushed_at":"2015-05-31T07:57:52Z","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":42616,"stargazers_count":27,"watchers_count":27,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":9,"forks":7,"open_issues":9,"watchers":27,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/markhibberd/pirate/pulls/52"},"html":{"href":"https://github.com/markhibberd/pirate/pull/52"},"issue":{"href":"https://api.github.com/repos/markhibberd/pirate/issues/52"},"comments":{"href":"https://api.github.com/repos/markhibberd/pirate/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/markhibberd/pirate/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/markhibberd/pirate/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/markhibberd/pirate/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/markhibberd/pirate/statuses/e6b85112f42b4062bca788e62a3a24712d160f5f"}}}}