{"action":"created","comment":{"url":"https://api.github.com/repos/hspec/autospec/pulls/comments/28499441","id":28499441,"diff_hunk":"@@ -0,0 +1,38 @@\n+module Options (splitArgs) where\n+\n+import           Data.List\n+import           System.Console.GetOpt\n+\n+splitArgs :: [String] -> ([String], [String])\n+splitArgs args = case break (== \"--\") $ reverse args of\n+  (xs, \"--\" : ys) -> (reverse ys, reverse xs)\n+  _ -> case filter isHspecArgs $ tails args of\n+    x:_ -> (dropEnd (length x) args, x)","path":"src/Options.hs","position":10,"original_position":10,"commit_id":"f8a63d05cba2481dec49d87a4e94727eff112c0a","original_commit_id":"fc7507ef546bb58fa9264579b0066f14b3462669","user":{"login":"sol","id":461132,"avatar_url":"https://avatars.githubusercontent.com/u/461132?v=3","gravatar_id":"","url":"https://api.github.com/users/sol","html_url":"https://github.com/sol","followers_url":"https://api.github.com/users/sol/followers","following_url":"https://api.github.com/users/sol/following{/other_user}","gists_url":"https://api.github.com/users/sol/gists{/gist_id}","starred_url":"https://api.github.com/users/sol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sol/subscriptions","organizations_url":"https://api.github.com/users/sol/orgs","repos_url":"https://api.github.com/users/sol/repos","events_url":"https://api.github.com/users/sol/events{/privacy}","received_events_url":"https://api.github.com/users/sol/received_events","type":"User","site_admin":false},"body":"addressed ;)","created_at":"2015-04-16T10:41:40Z","updated_at":"2015-04-16T10:41:40Z","html_url":"https://github.com/hspec/autospec/pull/4#discussion_r28499441","pull_request_url":"https://api.github.com/repos/hspec/autospec/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/hspec/autospec/pulls/comments/28499441"},"html":{"href":"https://github.com/hspec/autospec/pull/4#discussion_r28499441"},"pull_request":{"href":"https://api.github.com/repos/hspec/autospec/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/hspec/autospec/pulls/4","id":33428293,"html_url":"https://github.com/hspec/autospec/pull/4","diff_url":"https://github.com/hspec/autospec/pull/4.diff","patch_url":"https://github.com/hspec/autospec/pull/4.patch","issue_url":"https://api.github.com/repos/hspec/autospec/issues/4","number":4,"state":"open","locked":false,"title":"Accept Hspec command-line arguments","user":{"login":"sol","id":461132,"avatar_url":"https://avatars.githubusercontent.com/u/461132?v=3","gravatar_id":"","url":"https://api.github.com/users/sol","html_url":"https://github.com/sol","followers_url":"https://api.github.com/users/sol/followers","following_url":"https://api.github.com/users/sol/following{/other_user}","gists_url":"https://api.github.com/users/sol/gists{/gist_id}","starred_url":"https://api.github.com/users/sol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sol/subscriptions","organizations_url":"https://api.github.com/users/sol/orgs","repos_url":"https://api.github.com/users/sol/repos","events_url":"https://api.github.com/users/sol/events{/privacy}","received_events_url":"https://api.github.com/users/sol/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-16T08:24:35Z","updated_at":"2015-04-16T10:41:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4097c36ae47a2eaa42256ecebee744207205f945","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hspec/autospec/pulls/4/commits","review_comments_url":"https://api.github.com/repos/hspec/autospec/pulls/4/comments","review_comment_url":"https://api.github.com/repos/hspec/autospec/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hspec/autospec/issues/4/comments","statuses_url":"https://api.github.com/repos/hspec/autospec/statuses/f8a63d05cba2481dec49d87a4e94727eff112c0a","head":{"label":"hspec:hspec-args","ref":"hspec-args","sha":"f8a63d05cba2481dec49d87a4e94727eff112c0a","user":{"login":"hspec","id":1610185,"avatar_url":"https://avatars.githubusercontent.com/u/1610185?v=3","gravatar_id":"","url":"https://api.github.com/users/hspec","html_url":"https://github.com/hspec","followers_url":"https://api.github.com/users/hspec/followers","following_url":"https://api.github.com/users/hspec/following{/other_user}","gists_url":"https://api.github.com/users/hspec/gists{/gist_id}","starred_url":"https://api.github.com/users/hspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hspec/subscriptions","organizations_url":"https://api.github.com/users/hspec/orgs","repos_url":"https://api.github.com/users/hspec/repos","events_url":"https://api.github.com/users/hspec/events{/privacy}","received_events_url":"https://api.github.com/users/hspec/received_events","type":"Organization","site_admin":false},"repo":{"id":33900202,"name":"autospec","full_name":"hspec/autospec","owner":{"login":"hspec","id":1610185,"avatar_url":"https://avatars.githubusercontent.com/u/1610185?v=3","gravatar_id":"","url":"https://api.github.com/users/hspec","html_url":"https://github.com/hspec","followers_url":"https://api.github.com/users/hspec/followers","following_url":"https://api.github.com/users/hspec/following{/other_user}","gists_url":"https://api.github.com/users/hspec/gists{/gist_id}","starred_url":"https://api.github.com/users/hspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hspec/subscriptions","organizations_url":"https://api.github.com/users/hspec/orgs","repos_url":"https://api.github.com/users/hspec/repos","events_url":"https://api.github.com/users/hspec/events{/privacy}","received_events_url":"https://api.github.com/users/hspec/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hspec/autospec","description":"","fork":false,"url":"https://api.github.com/repos/hspec/autospec","forks_url":"https://api.github.com/repos/hspec/autospec/forks","keys_url":"https://api.github.com/repos/hspec/autospec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hspec/autospec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hspec/autospec/teams","hooks_url":"https://api.github.com/repos/hspec/autospec/hooks","issue_events_url":"https://api.github.com/repos/hspec/autospec/issues/events{/number}","events_url":"https://api.github.com/repos/hspec/autospec/events","assignees_url":"https://api.github.com/repos/hspec/autospec/assignees{/user}","branches_url":"https://api.github.com/repos/hspec/autospec/branches{/branch}","tags_url":"https://api.github.com/repos/hspec/autospec/tags","blobs_url":"https://api.github.com/repos/hspec/autospec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hspec/autospec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hspec/autospec/git/refs{/sha}","trees_url":"https://api.github.com/repos/hspec/autospec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hspec/autospec/statuses/{sha}","languages_url":"https://api.github.com/repos/hspec/autospec/languages","stargazers_url":"https://api.github.com/repos/hspec/autospec/stargazers","contributors_url":"https://api.github.com/repos/hspec/autospec/contributors","subscribers_url":"https://api.github.com/repos/hspec/autospec/subscribers","subscription_url":"https://api.github.com/repos/hspec/autospec/subscription","commits_url":"https://api.github.com/repos/hspec/autospec/commits{/sha}","git_commits_url":"https://api.github.com/repos/hspec/autospec/git/commits{/sha}","comments_url":"https://api.github.com/repos/hspec/autospec/comments{/number}","issue_comment_url":"https://api.github.com/repos/hspec/autospec/issues/comments{/number}","contents_url":"https://api.github.com/repos/hspec/autospec/contents/{+path}","compare_url":"https://api.github.com/repos/hspec/autospec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hspec/autospec/merges","archive_url":"https://api.github.com/repos/hspec/autospec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hspec/autospec/downloads","issues_url":"https://api.github.com/repos/hspec/autospec/issues{/number}","pulls_url":"https://api.github.com/repos/hspec/autospec/pulls{/number}","milestones_url":"https://api.github.com/repos/hspec/autospec/milestones{/number}","notifications_url":"https://api.github.com/repos/hspec/autospec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hspec/autospec/labels{/name}","releases_url":"https://api.github.com/repos/hspec/autospec/releases{/id}","created_at":"2015-04-13T23:46:24Z","updated_at":"2015-04-16T06:42:20Z","pushed_at":"2015-04-16T08:49:05Z","git_url":"git://github.com/hspec/autospec.git","ssh_url":"git@github.com:hspec/autospec.git","clone_url":"https://github.com/hspec/autospec.git","svn_url":"https://github.com/hspec/autospec","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"hspec:master","ref":"master","sha":"5389933e1d419ec6f27ce3fe49b2a92eb684b231","user":{"login":"hspec","id":1610185,"avatar_url":"https://avatars.githubusercontent.com/u/1610185?v=3","gravatar_id":"","url":"https://api.github.com/users/hspec","html_url":"https://github.com/hspec","followers_url":"https://api.github.com/users/hspec/followers","following_url":"https://api.github.com/users/hspec/following{/other_user}","gists_url":"https://api.github.com/users/hspec/gists{/gist_id}","starred_url":"https://api.github.com/users/hspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hspec/subscriptions","organizations_url":"https://api.github.com/users/hspec/orgs","repos_url":"https://api.github.com/users/hspec/repos","events_url":"https://api.github.com/users/hspec/events{/privacy}","received_events_url":"https://api.github.com/users/hspec/received_events","type":"Organization","site_admin":false},"repo":{"id":33900202,"name":"autospec","full_name":"hspec/autospec","owner":{"login":"hspec","id":1610185,"avatar_url":"https://avatars.githubusercontent.com/u/1610185?v=3","gravatar_id":"","url":"https://api.github.com/users/hspec","html_url":"https://github.com/hspec","followers_url":"https://api.github.com/users/hspec/followers","following_url":"https://api.github.com/users/hspec/following{/other_user}","gists_url":"https://api.github.com/users/hspec/gists{/gist_id}","starred_url":"https://api.github.com/users/hspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hspec/subscriptions","organizations_url":"https://api.github.com/users/hspec/orgs","repos_url":"https://api.github.com/users/hspec/repos","events_url":"https://api.github.com/users/hspec/events{/privacy}","received_events_url":"https://api.github.com/users/hspec/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hspec/autospec","description":"","fork":false,"url":"https://api.github.com/repos/hspec/autospec","forks_url":"https://api.github.com/repos/hspec/autospec/forks","keys_url":"https://api.github.com/repos/hspec/autospec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hspec/autospec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hspec/autospec/teams","hooks_url":"https://api.github.com/repos/hspec/autospec/hooks","issue_events_url":"https://api.github.com/repos/hspec/autospec/issues/events{/number}","events_url":"https://api.github.com/repos/hspec/autospec/events","assignees_url":"https://api.github.com/repos/hspec/autospec/assignees{/user}","branches_url":"https://api.github.com/repos/hspec/autospec/branches{/branch}","tags_url":"https://api.github.com/repos/hspec/autospec/tags","blobs_url":"https://api.github.com/repos/hspec/autospec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hspec/autospec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hspec/autospec/git/refs{/sha}","trees_url":"https://api.github.com/repos/hspec/autospec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hspec/autospec/statuses/{sha}","languages_url":"https://api.github.com/repos/hspec/autospec/languages","stargazers_url":"https://api.github.com/repos/hspec/autospec/stargazers","contributors_url":"https://api.github.com/repos/hspec/autospec/contributors","subscribers_url":"https://api.github.com/repos/hspec/autospec/subscribers","subscription_url":"https://api.github.com/repos/hspec/autospec/subscription","commits_url":"https://api.github.com/repos/hspec/autospec/commits{/sha}","git_commits_url":"https://api.github.com/repos/hspec/autospec/git/commits{/sha}","comments_url":"https://api.github.com/repos/hspec/autospec/comments{/number}","issue_comment_url":"https://api.github.com/repos/hspec/autospec/issues/comments{/number}","contents_url":"https://api.github.com/repos/hspec/autospec/contents/{+path}","compare_url":"https://api.github.com/repos/hspec/autospec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hspec/autospec/merges","archive_url":"https://api.github.com/repos/hspec/autospec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hspec/autospec/downloads","issues_url":"https://api.github.com/repos/hspec/autospec/issues{/number}","pulls_url":"https://api.github.com/repos/hspec/autospec/pulls{/number}","milestones_url":"https://api.github.com/repos/hspec/autospec/milestones{/number}","notifications_url":"https://api.github.com/repos/hspec/autospec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hspec/autospec/labels{/name}","releases_url":"https://api.github.com/repos/hspec/autospec/releases{/id}","created_at":"2015-04-13T23:46:24Z","updated_at":"2015-04-16T06:42:20Z","pushed_at":"2015-04-16T08:49:05Z","git_url":"git://github.com/hspec/autospec.git","ssh_url":"git@github.com:hspec/autospec.git","clone_url":"https://github.com/hspec/autospec.git","svn_url":"https://github.com/hspec/autospec","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hspec/autospec/pulls/4"},"html":{"href":"https://github.com/hspec/autospec/pull/4"},"issue":{"href":"https://api.github.com/repos/hspec/autospec/issues/4"},"comments":{"href":"https://api.github.com/repos/hspec/autospec/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/hspec/autospec/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/hspec/autospec/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hspec/autospec/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/hspec/autospec/statuses/f8a63d05cba2481dec49d87a4e94727eff112c0a"}}}}