{"action":"created","comment":{"url":"https://api.github.com/repos/SeattleTestbed/repy_v2/pulls/comments/37677663","id":37677663,"diff_hunk":"@@ -331,6 +331,7 @@ def main():\n   ### anywhere if this is repurposed...\n   usage = \"USAGE: repy.py [options] resource_file program_to_run.r2py [program args]\"\n   parser = optparse.OptionParser(usage=usage)\n+  parser.disable_interspersed_args()","path":"repy.py","position":4,"original_position":4,"commit_id":"573b4767b17d183e08bbebb04115fb791199e528","original_commit_id":"573b4767b17d183e08bbebb04115fb791199e528","user":{"login":"vladimir-v-diaz","id":3520883,"avatar_url":"https://avatars.githubusercontent.com/u/3520883?v=3","gravatar_id":"","url":"https://api.github.com/users/vladimir-v-diaz","html_url":"https://github.com/vladimir-v-diaz","followers_url":"https://api.github.com/users/vladimir-v-diaz/followers","following_url":"https://api.github.com/users/vladimir-v-diaz/following{/other_user}","gists_url":"https://api.github.com/users/vladimir-v-diaz/gists{/gist_id}","starred_url":"https://api.github.com/users/vladimir-v-diaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladimir-v-diaz/subscriptions","organizations_url":"https://api.github.com/users/vladimir-v-diaz/orgs","repos_url":"https://api.github.com/users/vladimir-v-diaz/repos","events_url":"https://api.github.com/users/vladimir-v-diaz/events{/privacy}","received_events_url":"https://api.github.com/users/vladimir-v-diaz/received_events","type":"User","site_admin":false},"body":"You may even add a comment explaining the importance of restoring traditional Unix syntax and what can go wrong if command-line options are consumed by repy.py.  Not adding a comment here seems like an easy way for a future developer to miss the importance of this behaviour.\r\n\r\nExample comment:\r\n`disable_interspersed_args()` restores traditional Unix syntax, where option parsing stops with the first non-option argument.  `disable_interspersed_args()` should be used if you have a command processor  which runs another command which has options of its own and you want to make sure these options don’t get confused. For example, each command might have a different set of options.","created_at":"2015-08-21T20:59:17Z","updated_at":"2015-08-21T20:59:17Z","html_url":"https://github.com/SeattleTestbed/repy_v2/pull/102#discussion_r37677663","pull_request_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/pulls/102","_links":{"self":{"href":"https://api.github.com/repos/SeattleTestbed/repy_v2/pulls/comments/37677663"},"html":{"href":"https://github.com/SeattleTestbed/repy_v2/pull/102#discussion_r37677663"},"pull_request":{"href":"https://api.github.com/repos/SeattleTestbed/repy_v2/pulls/102"}}},"pull_request":{"url":"https://api.github.com/repos/SeattleTestbed/repy_v2/pulls/102","id":41170433,"html_url":"https://github.com/SeattleTestbed/repy_v2/pull/102","diff_url":"https://github.com/SeattleTestbed/repy_v2/pull/102.diff","patch_url":"https://github.com/SeattleTestbed/repy_v2/pull/102.patch","issue_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/issues/102","number":102,"state":"open","locked":false,"title":"Quick fix for #101","user":{"login":"aaaaalbert","id":3806695,"avatar_url":"https://avatars.githubusercontent.com/u/3806695?v=3","gravatar_id":"","url":"https://api.github.com/users/aaaaalbert","html_url":"https://github.com/aaaaalbert","followers_url":"https://api.github.com/users/aaaaalbert/followers","following_url":"https://api.github.com/users/aaaaalbert/following{/other_user}","gists_url":"https://api.github.com/users/aaaaalbert/gists{/gist_id}","starred_url":"https://api.github.com/users/aaaaalbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaaaalbert/subscriptions","organizations_url":"https://api.github.com/users/aaaaalbert/orgs","repos_url":"https://api.github.com/users/aaaaalbert/repos","events_url":"https://api.github.com/users/aaaaalbert/events{/privacy}","received_events_url":"https://api.github.com/users/aaaaalbert/received_events","type":"User","site_admin":false},"body":"Make `repy.py` stop interpreting command-line arguments once it sees\r\nthe first non-option (which is usually the name of the program to run\r\nin the sandbox).","created_at":"2015-07-29T20:50:37Z","updated_at":"2015-08-21T20:59:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6c30524f13101c35c464910a835d97a9c6299886","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/pulls/102/commits","review_comments_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/pulls/102/comments","review_comment_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/issues/102/comments","statuses_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/statuses/573b4767b17d183e08bbebb04115fb791199e528","head":{"label":"SeattleTestbed:fix-greedy-optparse-#101","ref":"fix-greedy-optparse-#101","sha":"573b4767b17d183e08bbebb04115fb791199e528","user":{"login":"SeattleTestbed","id":7329722,"avatar_url":"https://avatars.githubusercontent.com/u/7329722?v=3","gravatar_id":"","url":"https://api.github.com/users/SeattleTestbed","html_url":"https://github.com/SeattleTestbed","followers_url":"https://api.github.com/users/SeattleTestbed/followers","following_url":"https://api.github.com/users/SeattleTestbed/following{/other_user}","gists_url":"https://api.github.com/users/SeattleTestbed/gists{/gist_id}","starred_url":"https://api.github.com/users/SeattleTestbed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeattleTestbed/subscriptions","organizations_url":"https://api.github.com/users/SeattleTestbed/orgs","repos_url":"https://api.github.com/users/SeattleTestbed/repos","events_url":"https://api.github.com/users/SeattleTestbed/events{/privacy}","received_events_url":"https://api.github.com/users/SeattleTestbed/received_events","type":"Organization","site_admin":false},"repo":{"id":20135494,"name":"repy_v2","full_name":"SeattleTestbed/repy_v2","owner":{"login":"SeattleTestbed","id":7329722,"avatar_url":"https://avatars.githubusercontent.com/u/7329722?v=3","gravatar_id":"","url":"https://api.github.com/users/SeattleTestbed","html_url":"https://github.com/SeattleTestbed","followers_url":"https://api.github.com/users/SeattleTestbed/followers","following_url":"https://api.github.com/users/SeattleTestbed/following{/other_user}","gists_url":"https://api.github.com/users/SeattleTestbed/gists{/gist_id}","starred_url":"https://api.github.com/users/SeattleTestbed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeattleTestbed/subscriptions","organizations_url":"https://api.github.com/users/SeattleTestbed/orgs","repos_url":"https://api.github.com/users/SeattleTestbed/repos","events_url":"https://api.github.com/users/SeattleTestbed/events{/privacy}","received_events_url":"https://api.github.com/users/SeattleTestbed/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SeattleTestbed/repy_v2","description":"","fork":false,"url":"https://api.github.com/repos/SeattleTestbed/repy_v2","forks_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/forks","keys_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/teams","hooks_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/hooks","issue_events_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/issues/events{/number}","events_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/events","assignees_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/assignees{/user}","branches_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/branches{/branch}","tags_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/tags","blobs_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/git/refs{/sha}","trees_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/statuses/{sha}","languages_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/languages","stargazers_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/stargazers","contributors_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/contributors","subscribers_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/subscribers","subscription_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/subscription","commits_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/commits{/sha}","git_commits_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/git/commits{/sha}","comments_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/comments{/number}","issue_comment_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/issues/comments{/number}","contents_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/contents/{+path}","compare_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/merges","archive_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/downloads","issues_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/issues{/number}","pulls_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/pulls{/number}","milestones_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/milestones{/number}","notifications_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/labels{/name}","releases_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/releases{/id}","created_at":"2014-05-24T17:36:01Z","updated_at":"2015-01-22T10:33:50Z","pushed_at":"2015-08-11T21:58:07Z","git_url":"git://github.com/SeattleTestbed/repy_v2.git","ssh_url":"git@github.com:SeattleTestbed/repy_v2.git","clone_url":"https://github.com/SeattleTestbed/repy_v2.git","svn_url":"https://github.com/SeattleTestbed/repy_v2","homepage":"","size":1508,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":49,"forks":12,"open_issues":49,"watchers":1,"default_branch":"master"}},"base":{"label":"SeattleTestbed:master","ref":"master","sha":"83abd9c8860dde4237a0e4f5589d709ea5a0a9c0","user":{"login":"SeattleTestbed","id":7329722,"avatar_url":"https://avatars.githubusercontent.com/u/7329722?v=3","gravatar_id":"","url":"https://api.github.com/users/SeattleTestbed","html_url":"https://github.com/SeattleTestbed","followers_url":"https://api.github.com/users/SeattleTestbed/followers","following_url":"https://api.github.com/users/SeattleTestbed/following{/other_user}","gists_url":"https://api.github.com/users/SeattleTestbed/gists{/gist_id}","starred_url":"https://api.github.com/users/SeattleTestbed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeattleTestbed/subscriptions","organizations_url":"https://api.github.com/users/SeattleTestbed/orgs","repos_url":"https://api.github.com/users/SeattleTestbed/repos","events_url":"https://api.github.com/users/SeattleTestbed/events{/privacy}","received_events_url":"https://api.github.com/users/SeattleTestbed/received_events","type":"Organization","site_admin":false},"repo":{"id":20135494,"name":"repy_v2","full_name":"SeattleTestbed/repy_v2","owner":{"login":"SeattleTestbed","id":7329722,"avatar_url":"https://avatars.githubusercontent.com/u/7329722?v=3","gravatar_id":"","url":"https://api.github.com/users/SeattleTestbed","html_url":"https://github.com/SeattleTestbed","followers_url":"https://api.github.com/users/SeattleTestbed/followers","following_url":"https://api.github.com/users/SeattleTestbed/following{/other_user}","gists_url":"https://api.github.com/users/SeattleTestbed/gists{/gist_id}","starred_url":"https://api.github.com/users/SeattleTestbed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SeattleTestbed/subscriptions","organizations_url":"https://api.github.com/users/SeattleTestbed/orgs","repos_url":"https://api.github.com/users/SeattleTestbed/repos","events_url":"https://api.github.com/users/SeattleTestbed/events{/privacy}","received_events_url":"https://api.github.com/users/SeattleTestbed/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SeattleTestbed/repy_v2","description":"","fork":false,"url":"https://api.github.com/repos/SeattleTestbed/repy_v2","forks_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/forks","keys_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/teams","hooks_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/hooks","issue_events_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/issues/events{/number}","events_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/events","assignees_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/assignees{/user}","branches_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/branches{/branch}","tags_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/tags","blobs_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/git/refs{/sha}","trees_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/statuses/{sha}","languages_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/languages","stargazers_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/stargazers","contributors_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/contributors","subscribers_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/subscribers","subscription_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/subscription","commits_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/commits{/sha}","git_commits_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/git/commits{/sha}","comments_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/comments{/number}","issue_comment_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/issues/comments{/number}","contents_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/contents/{+path}","compare_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/merges","archive_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/downloads","issues_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/issues{/number}","pulls_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/pulls{/number}","milestones_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/milestones{/number}","notifications_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/labels{/name}","releases_url":"https://api.github.com/repos/SeattleTestbed/repy_v2/releases{/id}","created_at":"2014-05-24T17:36:01Z","updated_at":"2015-01-22T10:33:50Z","pushed_at":"2015-08-11T21:58:07Z","git_url":"git://github.com/SeattleTestbed/repy_v2.git","ssh_url":"git@github.com:SeattleTestbed/repy_v2.git","clone_url":"https://github.com/SeattleTestbed/repy_v2.git","svn_url":"https://github.com/SeattleTestbed/repy_v2","homepage":"","size":1508,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"open_issues_count":49,"forks":12,"open_issues":49,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SeattleTestbed/repy_v2/pulls/102"},"html":{"href":"https://github.com/SeattleTestbed/repy_v2/pull/102"},"issue":{"href":"https://api.github.com/repos/SeattleTestbed/repy_v2/issues/102"},"comments":{"href":"https://api.github.com/repos/SeattleTestbed/repy_v2/issues/102/comments"},"review_comments":{"href":"https://api.github.com/repos/SeattleTestbed/repy_v2/pulls/102/comments"},"review_comment":{"href":"https://api.github.com/repos/SeattleTestbed/repy_v2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SeattleTestbed/repy_v2/pulls/102/commits"},"statuses":{"href":"https://api.github.com/repos/SeattleTestbed/repy_v2/statuses/573b4767b17d183e08bbebb04115fb791199e528"}}}}