{"action":"created","comment":{"url":"https://api.github.com/repos/Pylons/pyramid/pulls/comments/91845468","pull_request_review_id":12357484,"id":91845468,"diff_hunk":"@@ -48,92 +47,106 @@ class PServeCommand(object):\n     \"\"\"\n     default_verbosity = 1\n \n-    parser = optparse.OptionParser(\n-        usage,\n+    parser = argparse.ArgumentParser(\n+        usage=\"%(prog)s config_uri [var=value]\",","path":"pyramid/scripts/pserve.py","position":24,"original_position":24,"commit_id":"4e00b97b402ae322d0a35e4c28040183f9c8a8fb","original_commit_id":"4e00b97b402ae322d0a35e4c28040183f9c8a8fb","user":{"login":"mmerickel","id":487237,"avatar_url":"https://avatars.githubusercontent.com/u/487237?v=3","gravatar_id":"","url":"https://api.github.com/users/mmerickel","html_url":"https://github.com/mmerickel","followers_url":"https://api.github.com/users/mmerickel/followers","following_url":"https://api.github.com/users/mmerickel/following{/other_user}","gists_url":"https://api.github.com/users/mmerickel/gists{/gist_id}","starred_url":"https://api.github.com/users/mmerickel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmerickel/subscriptions","organizations_url":"https://api.github.com/users/mmerickel/orgs","repos_url":"https://api.github.com/users/mmerickel/repos","events_url":"https://api.github.com/users/mmerickel/events{/privacy}","received_events_url":"https://api.github.com/users/mmerickel/received_events","type":"User","site_admin":false},"body":"usage is generated by argparse... was it not acceptable? Why is it being overridden?","created_at":"2016-12-11T00:47:54Z","updated_at":"2016-12-11T00:57:36Z","html_url":"https://github.com/Pylons/pyramid/pull/2842#discussion_r91845468","pull_request_url":"https://api.github.com/repos/Pylons/pyramid/pulls/2842","_links":{"self":{"href":"https://api.github.com/repos/Pylons/pyramid/pulls/comments/91845468"},"html":{"href":"https://github.com/Pylons/pyramid/pull/2842#discussion_r91845468"},"pull_request":{"href":"https://api.github.com/repos/Pylons/pyramid/pulls/2842"}}},"pull_request":{"url":"https://api.github.com/repos/Pylons/pyramid/pulls/2842","id":95415002,"html_url":"https://github.com/Pylons/pyramid/pull/2842","diff_url":"https://github.com/Pylons/pyramid/pull/2842.diff","patch_url":"https://github.com/Pylons/pyramid/pull/2842.patch","issue_url":"https://api.github.com/repos/Pylons/pyramid/issues/2842","number":2842,"state":"open","locked":false,"title":"Scripts optparse to argparse","user":{"login":"stevepiercy","id":102112,"avatar_url":"https://avatars.githubusercontent.com/u/102112?v=3","gravatar_id":"","url":"https://api.github.com/users/stevepiercy","html_url":"https://github.com/stevepiercy","followers_url":"https://api.github.com/users/stevepiercy/followers","following_url":"https://api.github.com/users/stevepiercy/following{/other_user}","gists_url":"https://api.github.com/users/stevepiercy/gists{/gist_id}","starred_url":"https://api.github.com/users/stevepiercy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevepiercy/subscriptions","organizations_url":"https://api.github.com/users/stevepiercy/orgs","repos_url":"https://api.github.com/users/stevepiercy/repos","events_url":"https://api.github.com/users/stevepiercy/events{/privacy}","received_events_url":"https://api.github.com/users/stevepiercy/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-27T20:15:32Z","updated_at":"2016-12-11T00:57:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a4d9831b55de4217a5ad30ecfc8fb7386e242d94","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Pylons/pyramid/milestones/4","html_url":"https://github.com/Pylons/pyramid/milestone/4","labels_url":"https://api.github.com/repos/Pylons/pyramid/milestones/4/labels","id":1480906,"number":4,"title":"1.8","description":"","creator":{"login":"bertjwregeer","id":649426,"avatar_url":"https://avatars.githubusercontent.com/u/649426?v=3","gravatar_id":"","url":"https://api.github.com/users/bertjwregeer","html_url":"https://github.com/bertjwregeer","followers_url":"https://api.github.com/users/bertjwregeer/followers","following_url":"https://api.github.com/users/bertjwregeer/following{/other_user}","gists_url":"https://api.github.com/users/bertjwregeer/gists{/gist_id}","starred_url":"https://api.github.com/users/bertjwregeer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bertjwregeer/subscriptions","organizations_url":"https://api.github.com/users/bertjwregeer/orgs","repos_url":"https://api.github.com/users/bertjwregeer/repos","events_url":"https://api.github.com/users/bertjwregeer/events{/privacy}","received_events_url":"https://api.github.com/users/bertjwregeer/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":25,"state":"open","created_at":"2016-01-03T09:13:40Z","updated_at":"2016-12-10T06:01:23Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/Pylons/pyramid/pulls/2842/commits","review_comments_url":"https://api.github.com/repos/Pylons/pyramid/pulls/2842/comments","review_comment_url":"https://api.github.com/repos/Pylons/pyramid/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Pylons/pyramid/issues/2842/comments","statuses_url":"https://api.github.com/repos/Pylons/pyramid/statuses/4e00b97b402ae322d0a35e4c28040183f9c8a8fb","head":{"label":"stevepiercy:scripts-optparse-to-argparse","ref":"scripts-optparse-to-argparse","sha":"4e00b97b402ae322d0a35e4c28040183f9c8a8fb","user":{"login":"stevepiercy","id":102112,"avatar_url":"https://avatars.githubusercontent.com/u/102112?v=3","gravatar_id":"","url":"https://api.github.com/users/stevepiercy","html_url":"https://github.com/stevepiercy","followers_url":"https://api.github.com/users/stevepiercy/followers","following_url":"https://api.github.com/users/stevepiercy/following{/other_user}","gists_url":"https://api.github.com/users/stevepiercy/gists{/gist_id}","starred_url":"https://api.github.com/users/stevepiercy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevepiercy/subscriptions","organizations_url":"https://api.github.com/users/stevepiercy/orgs","repos_url":"https://api.github.com/users/stevepiercy/repos","events_url":"https://api.github.com/users/stevepiercy/events{/privacy}","received_events_url":"https://api.github.com/users/stevepiercy/received_events","type":"User","site_admin":false},"repo":{"id":50753636,"name":"pyramid","full_name":"stevepiercy/pyramid","owner":{"login":"stevepiercy","id":102112,"avatar_url":"https://avatars.githubusercontent.com/u/102112?v=3","gravatar_id":"","url":"https://api.github.com/users/stevepiercy","html_url":"https://github.com/stevepiercy","followers_url":"https://api.github.com/users/stevepiercy/followers","following_url":"https://api.github.com/users/stevepiercy/following{/other_user}","gists_url":"https://api.github.com/users/stevepiercy/gists{/gist_id}","starred_url":"https://api.github.com/users/stevepiercy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevepiercy/subscriptions","organizations_url":"https://api.github.com/users/stevepiercy/orgs","repos_url":"https://api.github.com/users/stevepiercy/repos","events_url":"https://api.github.com/users/stevepiercy/events{/privacy}","received_events_url":"https://api.github.com/users/stevepiercy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stevepiercy/pyramid","description":"Pyramid web framework","fork":true,"url":"https://api.github.com/repos/stevepiercy/pyramid","forks_url":"https://api.github.com/repos/stevepiercy/pyramid/forks","keys_url":"https://api.github.com/repos/stevepiercy/pyramid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stevepiercy/pyramid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stevepiercy/pyramid/teams","hooks_url":"https://api.github.com/repos/stevepiercy/pyramid/hooks","issue_events_url":"https://api.github.com/repos/stevepiercy/pyramid/issues/events{/number}","events_url":"https://api.github.com/repos/stevepiercy/pyramid/events","assignees_url":"https://api.github.com/repos/stevepiercy/pyramid/assignees{/user}","branches_url":"https://api.github.com/repos/stevepiercy/pyramid/branches{/branch}","tags_url":"https://api.github.com/repos/stevepiercy/pyramid/tags","blobs_url":"https://api.github.com/repos/stevepiercy/pyramid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stevepiercy/pyramid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stevepiercy/pyramid/git/refs{/sha}","trees_url":"https://api.github.com/repos/stevepiercy/pyramid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stevepiercy/pyramid/statuses/{sha}","languages_url":"https://api.github.com/repos/stevepiercy/pyramid/languages","stargazers_url":"https://api.github.com/repos/stevepiercy/pyramid/stargazers","contributors_url":"https://api.github.com/repos/stevepiercy/pyramid/contributors","subscribers_url":"https://api.github.com/repos/stevepiercy/pyramid/subscribers","subscription_url":"https://api.github.com/repos/stevepiercy/pyramid/subscription","commits_url":"https://api.github.com/repos/stevepiercy/pyramid/commits{/sha}","git_commits_url":"https://api.github.com/repos/stevepiercy/pyramid/git/commits{/sha}","comments_url":"https://api.github.com/repos/stevepiercy/pyramid/comments{/number}","issue_comment_url":"https://api.github.com/repos/stevepiercy/pyramid/issues/comments{/number}","contents_url":"https://api.github.com/repos/stevepiercy/pyramid/contents/{+path}","compare_url":"https://api.github.com/repos/stevepiercy/pyramid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stevepiercy/pyramid/merges","archive_url":"https://api.github.com/repos/stevepiercy/pyramid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stevepiercy/pyramid/downloads","issues_url":"https://api.github.com/repos/stevepiercy/pyramid/issues{/number}","pulls_url":"https://api.github.com/repos/stevepiercy/pyramid/pulls{/number}","milestones_url":"https://api.github.com/repos/stevepiercy/pyramid/milestones{/number}","notifications_url":"https://api.github.com/repos/stevepiercy/pyramid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stevepiercy/pyramid/labels{/name}","releases_url":"https://api.github.com/repos/stevepiercy/pyramid/releases{/id}","deployments_url":"https://api.github.com/repos/stevepiercy/pyramid/deployments","created_at":"2016-01-31T01:30:04Z","updated_at":"2016-01-31T01:30:06Z","pushed_at":"2016-12-10T23:47:02Z","git_url":"git://github.com/stevepiercy/pyramid.git","ssh_url":"git@github.com:stevepiercy/pyramid.git","clone_url":"https://github.com/stevepiercy/pyramid.git","svn_url":"https://github.com/stevepiercy/pyramid","homepage":"http://docs.pylonsproject.org/en/latest/docs/pyramid.html","size":20204,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"Pylons:scripts-optparse-to-argparse","ref":"scripts-optparse-to-argparse","sha":"7fae2c09c3e7c0710e69dbe3100508ed5266e84a","user":{"login":"Pylons","id":452227,"avatar_url":"https://avatars.githubusercontent.com/u/452227?v=3","gravatar_id":"","url":"https://api.github.com/users/Pylons","html_url":"https://github.com/Pylons","followers_url":"https://api.github.com/users/Pylons/followers","following_url":"https://api.github.com/users/Pylons/following{/other_user}","gists_url":"https://api.github.com/users/Pylons/gists{/gist_id}","starred_url":"https://api.github.com/users/Pylons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pylons/subscriptions","organizations_url":"https://api.github.com/users/Pylons/orgs","repos_url":"https://api.github.com/users/Pylons/repos","events_url":"https://api.github.com/users/Pylons/events{/privacy}","received_events_url":"https://api.github.com/users/Pylons/received_events","type":"Organization","site_admin":false},"repo":{"id":1020639,"name":"pyramid","full_name":"Pylons/pyramid","owner":{"login":"Pylons","id":452227,"avatar_url":"https://avatars.githubusercontent.com/u/452227?v=3","gravatar_id":"","url":"https://api.github.com/users/Pylons","html_url":"https://github.com/Pylons","followers_url":"https://api.github.com/users/Pylons/followers","following_url":"https://api.github.com/users/Pylons/following{/other_user}","gists_url":"https://api.github.com/users/Pylons/gists{/gist_id}","starred_url":"https://api.github.com/users/Pylons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pylons/subscriptions","organizations_url":"https://api.github.com/users/Pylons/orgs","repos_url":"https://api.github.com/users/Pylons/repos","events_url":"https://api.github.com/users/Pylons/events{/privacy}","received_events_url":"https://api.github.com/users/Pylons/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Pylons/pyramid","description":"Pyramid web framework","fork":false,"url":"https://api.github.com/repos/Pylons/pyramid","forks_url":"https://api.github.com/repos/Pylons/pyramid/forks","keys_url":"https://api.github.com/repos/Pylons/pyramid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Pylons/pyramid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Pylons/pyramid/teams","hooks_url":"https://api.github.com/repos/Pylons/pyramid/hooks","issue_events_url":"https://api.github.com/repos/Pylons/pyramid/issues/events{/number}","events_url":"https://api.github.com/repos/Pylons/pyramid/events","assignees_url":"https://api.github.com/repos/Pylons/pyramid/assignees{/user}","branches_url":"https://api.github.com/repos/Pylons/pyramid/branches{/branch}","tags_url":"https://api.github.com/repos/Pylons/pyramid/tags","blobs_url":"https://api.github.com/repos/Pylons/pyramid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Pylons/pyramid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Pylons/pyramid/git/refs{/sha}","trees_url":"https://api.github.com/repos/Pylons/pyramid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Pylons/pyramid/statuses/{sha}","languages_url":"https://api.github.com/repos/Pylons/pyramid/languages","stargazers_url":"https://api.github.com/repos/Pylons/pyramid/stargazers","contributors_url":"https://api.github.com/repos/Pylons/pyramid/contributors","subscribers_url":"https://api.github.com/repos/Pylons/pyramid/subscribers","subscription_url":"https://api.github.com/repos/Pylons/pyramid/subscription","commits_url":"https://api.github.com/repos/Pylons/pyramid/commits{/sha}","git_commits_url":"https://api.github.com/repos/Pylons/pyramid/git/commits{/sha}","comments_url":"https://api.github.com/repos/Pylons/pyramid/comments{/number}","issue_comment_url":"https://api.github.com/repos/Pylons/pyramid/issues/comments{/number}","contents_url":"https://api.github.com/repos/Pylons/pyramid/contents/{+path}","compare_url":"https://api.github.com/repos/Pylons/pyramid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Pylons/pyramid/merges","archive_url":"https://api.github.com/repos/Pylons/pyramid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Pylons/pyramid/downloads","issues_url":"https://api.github.com/repos/Pylons/pyramid/issues{/number}","pulls_url":"https://api.github.com/repos/Pylons/pyramid/pulls{/number}","milestones_url":"https://api.github.com/repos/Pylons/pyramid/milestones{/number}","notifications_url":"https://api.github.com/repos/Pylons/pyramid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Pylons/pyramid/labels{/name}","releases_url":"https://api.github.com/repos/Pylons/pyramid/releases{/id}","deployments_url":"https://api.github.com/repos/Pylons/pyramid/deployments","created_at":"2010-10-24T22:00:35Z","updated_at":"2016-12-10T21:41:57Z","pushed_at":"2016-12-10T23:47:03Z","git_url":"git://github.com/Pylons/pyramid.git","ssh_url":"git@github.com:Pylons/pyramid.git","clone_url":"https://github.com/Pylons/pyramid.git","svn_url":"https://github.com/Pylons/pyramid","homepage":"https://trypyramid.com/","size":29866,"stargazers_count":2181,"watchers_count":2181,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":711,"mirror_url":null,"open_issues_count":107,"forks":711,"open_issues":107,"watchers":2181,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Pylons/pyramid/pulls/2842"},"html":{"href":"https://github.com/Pylons/pyramid/pull/2842"},"issue":{"href":"https://api.github.com/repos/Pylons/pyramid/issues/2842"},"comments":{"href":"https://api.github.com/repos/Pylons/pyramid/issues/2842/comments"},"review_comments":{"href":"https://api.github.com/repos/Pylons/pyramid/pulls/2842/comments"},"review_comment":{"href":"https://api.github.com/repos/Pylons/pyramid/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Pylons/pyramid/pulls/2842/commits"},"statuses":{"href":"https://api.github.com/repos/Pylons/pyramid/statuses/4e00b97b402ae322d0a35e4c28040183f9c8a8fb"}}}}
{"actor":{"display_login":"mmerickel"}}