{"action":"created","comment":{"url":"https://api.github.com/repos/gnuradio/gnuradio/pulls/comments/61734620","id":61734620,"diff_hunk":"@@ -336,18 +336,18 @@ $short_id#slurp\n \n \n def argument_parser():\n-    #set $desc_args = 'usage=\"%prog: [options]\", option_class=eng_option'\n     #if $flow_graph.get_option('description')\n-        #set $desc_args += ', description=description'\n     description = $repr($flow_graph.get_option('description'))\n+    #else\n+    description = None\n     #end if\n-    parser = OptionParser($desc_args)\n+    parser = ArgumentParser(description=description)","path":"grc/core/generator/flow_graph.tmpl","position":12,"original_position":12,"commit_id":"89d6006ed9f4c5df7fa76070189ad5fd302a8344","original_commit_id":"89d6006ed9f4c5df7fa76070189ad5fd302a8344","user":{"login":"skoslowski","id":1712393,"avatar_url":"https://avatars.githubusercontent.com/u/1712393?v=3","gravatar_id":"","url":"https://api.github.com/users/skoslowski","html_url":"https://github.com/skoslowski","followers_url":"https://api.github.com/users/skoslowski/followers","following_url":"https://api.github.com/users/skoslowski/following{/other_user}","gists_url":"https://api.github.com/users/skoslowski/gists{/gist_id}","starred_url":"https://api.github.com/users/skoslowski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skoslowski/subscriptions","organizations_url":"https://api.github.com/users/skoslowski/orgs","repos_url":"https://api.github.com/users/skoslowski/repos","events_url":"https://api.github.com/users/skoslowski/events{/privacy}","received_events_url":"https://api.github.com/users/skoslowski/received_events","type":"User","site_admin":false},"body":"Please don't change the structure here. We only want to emit arguments we really need. That is why the arguments to ArgumentParser() are first collected in a string.","created_at":"2016-05-02T12:53:55Z","updated_at":"2016-05-02T12:53:55Z","html_url":"https://github.com/gnuradio/gnuradio/pull/688#discussion_r61734620","pull_request_url":"https://api.github.com/repos/gnuradio/gnuradio/pulls/688","_links":{"self":{"href":"https://api.github.com/repos/gnuradio/gnuradio/pulls/comments/61734620"},"html":{"href":"https://github.com/gnuradio/gnuradio/pull/688#discussion_r61734620"},"pull_request":{"href":"https://api.github.com/repos/gnuradio/gnuradio/pulls/688"}}},"pull_request":{"url":"https://api.github.com/repos/gnuradio/gnuradio/pulls/688","id":51644497,"html_url":"https://github.com/gnuradio/gnuradio/pull/688","diff_url":"https://github.com/gnuradio/gnuradio/pull/688.diff","patch_url":"https://github.com/gnuradio/gnuradio/pull/688.patch","issue_url":"https://api.github.com/repos/gnuradio/gnuradio/issues/688","number":688,"state":"open","locked":false,"title":"Convert some tools from deprecated OptionParser to ArgParser","user":{"login":"pinkavaj","id":692166,"avatar_url":"https://avatars.githubusercontent.com/u/692166?v=3","gravatar_id":"","url":"https://api.github.com/users/pinkavaj","html_url":"https://github.com/pinkavaj","followers_url":"https://api.github.com/users/pinkavaj/followers","following_url":"https://api.github.com/users/pinkavaj/following{/other_user}","gists_url":"https://api.github.com/users/pinkavaj/gists{/gist_id}","starred_url":"https://api.github.com/users/pinkavaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pinkavaj/subscriptions","organizations_url":"https://api.github.com/users/pinkavaj/orgs","repos_url":"https://api.github.com/users/pinkavaj/repos","events_url":"https://api.github.com/users/pinkavaj/events{/privacy}","received_events_url":"https://api.github.com/users/pinkavaj/received_events","type":"User","site_admin":false},"body":"Other will follow in future","created_at":"2015-11-24T11:00:15Z","updated_at":"2016-05-02T12:53:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ec1080d594e222ee7614cfa3be2688da5303a31e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gnuradio/gnuradio/pulls/688/commits","review_comments_url":"https://api.github.com/repos/gnuradio/gnuradio/pulls/688/comments","review_comment_url":"https://api.github.com/repos/gnuradio/gnuradio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gnuradio/gnuradio/issues/688/comments","statuses_url":"https://api.github.com/repos/gnuradio/gnuradio/statuses/89d6006ed9f4c5df7fa76070189ad5fd302a8344","head":{"label":"pinkavaj:argparse-01","ref":"argparse-01","sha":"89d6006ed9f4c5df7fa76070189ad5fd302a8344","user":{"login":"pinkavaj","id":692166,"avatar_url":"https://avatars.githubusercontent.com/u/692166?v=3","gravatar_id":"","url":"https://api.github.com/users/pinkavaj","html_url":"https://github.com/pinkavaj","followers_url":"https://api.github.com/users/pinkavaj/followers","following_url":"https://api.github.com/users/pinkavaj/following{/other_user}","gists_url":"https://api.github.com/users/pinkavaj/gists{/gist_id}","starred_url":"https://api.github.com/users/pinkavaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pinkavaj/subscriptions","organizations_url":"https://api.github.com/users/pinkavaj/orgs","repos_url":"https://api.github.com/users/pinkavaj/repos","events_url":"https://api.github.com/users/pinkavaj/events{/privacy}","received_events_url":"https://api.github.com/users/pinkavaj/received_events","type":"User","site_admin":false},"repo":{"id":11533916,"name":"gnuradio","full_name":"pinkavaj/gnuradio","owner":{"login":"pinkavaj","id":692166,"avatar_url":"https://avatars.githubusercontent.com/u/692166?v=3","gravatar_id":"","url":"https://api.github.com/users/pinkavaj","html_url":"https://github.com/pinkavaj","followers_url":"https://api.github.com/users/pinkavaj/followers","following_url":"https://api.github.com/users/pinkavaj/following{/other_user}","gists_url":"https://api.github.com/users/pinkavaj/gists{/gist_id}","starred_url":"https://api.github.com/users/pinkavaj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pinkavaj/subscriptions","organizations_url":"https://api.github.com/users/pinkavaj/orgs","repos_url":"https://api.github.com/users/pinkavaj/repos","events_url":"https://api.github.com/users/pinkavaj/events{/privacy}","received_events_url":"https://api.github.com/users/pinkavaj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pinkavaj/gnuradio","description":"GNU Radio","fork":true,"url":"https://api.github.com/repos/pinkavaj/gnuradio","forks_url":"https://api.github.com/repos/pinkavaj/gnuradio/forks","keys_url":"https://api.github.com/repos/pinkavaj/gnuradio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pinkavaj/gnuradio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pinkavaj/gnuradio/teams","hooks_url":"https://api.github.com/repos/pinkavaj/gnuradio/hooks","issue_events_url":"https://api.github.com/repos/pinkavaj/gnuradio/issues/events{/number}","events_url":"https://api.github.com/repos/pinkavaj/gnuradio/events","assignees_url":"https://api.github.com/repos/pinkavaj/gnuradio/assignees{/user}","branches_url":"https://api.github.com/repos/pinkavaj/gnuradio/branches{/branch}","tags_url":"https://api.github.com/repos/pinkavaj/gnuradio/tags","blobs_url":"https://api.github.com/repos/pinkavaj/gnuradio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pinkavaj/gnuradio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pinkavaj/gnuradio/git/refs{/sha}","trees_url":"https://api.github.com/repos/pinkavaj/gnuradio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pinkavaj/gnuradio/statuses/{sha}","languages_url":"https://api.github.com/repos/pinkavaj/gnuradio/languages","stargazers_url":"https://api.github.com/repos/pinkavaj/gnuradio/stargazers","contributors_url":"https://api.github.com/repos/pinkavaj/gnuradio/contributors","subscribers_url":"https://api.github.com/repos/pinkavaj/gnuradio/subscribers","subscription_url":"https://api.github.com/repos/pinkavaj/gnuradio/subscription","commits_url":"https://api.github.com/repos/pinkavaj/gnuradio/commits{/sha}","git_commits_url":"https://api.github.com/repos/pinkavaj/gnuradio/git/commits{/sha}","comments_url":"https://api.github.com/repos/pinkavaj/gnuradio/comments{/number}","issue_comment_url":"https://api.github.com/repos/pinkavaj/gnuradio/issues/comments{/number}","contents_url":"https://api.github.com/repos/pinkavaj/gnuradio/contents/{+path}","compare_url":"https://api.github.com/repos/pinkavaj/gnuradio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pinkavaj/gnuradio/merges","archive_url":"https://api.github.com/repos/pinkavaj/gnuradio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pinkavaj/gnuradio/downloads","issues_url":"https://api.github.com/repos/pinkavaj/gnuradio/issues{/number}","pulls_url":"https://api.github.com/repos/pinkavaj/gnuradio/pulls{/number}","milestones_url":"https://api.github.com/repos/pinkavaj/gnuradio/milestones{/number}","notifications_url":"https://api.github.com/repos/pinkavaj/gnuradio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pinkavaj/gnuradio/labels{/name}","releases_url":"https://api.github.com/repos/pinkavaj/gnuradio/releases{/id}","deployments_url":"https://api.github.com/repos/pinkavaj/gnuradio/deployments","created_at":"2013-07-19T18:05:26Z","updated_at":"2015-04-26T19:36:43Z","pushed_at":"2016-05-02T12:35:37Z","git_url":"git://github.com/pinkavaj/gnuradio.git","ssh_url":"git@github.com:pinkavaj/gnuradio.git","clone_url":"https://github.com/pinkavaj/gnuradio.git","svn_url":"https://github.com/pinkavaj/gnuradio","homepage":"gnuradio.org","size":45512,"stargazers_count":1,"watchers_count":1,"language":"C++","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":1,"default_branch":"master"}},"base":{"label":"gnuradio:next","ref":"next","sha":"6b3a2516e4cff2508e3ab47d2fd58a0305221269","user":{"login":"gnuradio","id":1278659,"avatar_url":"https://avatars.githubusercontent.com/u/1278659?v=3","gravatar_id":"","url":"https://api.github.com/users/gnuradio","html_url":"https://github.com/gnuradio","followers_url":"https://api.github.com/users/gnuradio/followers","following_url":"https://api.github.com/users/gnuradio/following{/other_user}","gists_url":"https://api.github.com/users/gnuradio/gists{/gist_id}","starred_url":"https://api.github.com/users/gnuradio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnuradio/subscriptions","organizations_url":"https://api.github.com/users/gnuradio/orgs","repos_url":"https://api.github.com/users/gnuradio/repos","events_url":"https://api.github.com/users/gnuradio/events{/privacy}","received_events_url":"https://api.github.com/users/gnuradio/received_events","type":"Organization","site_admin":false},"repo":{"id":3030065,"name":"gnuradio","full_name":"gnuradio/gnuradio","owner":{"login":"gnuradio","id":1278659,"avatar_url":"https://avatars.githubusercontent.com/u/1278659?v=3","gravatar_id":"","url":"https://api.github.com/users/gnuradio","html_url":"https://github.com/gnuradio","followers_url":"https://api.github.com/users/gnuradio/followers","following_url":"https://api.github.com/users/gnuradio/following{/other_user}","gists_url":"https://api.github.com/users/gnuradio/gists{/gist_id}","starred_url":"https://api.github.com/users/gnuradio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnuradio/subscriptions","organizations_url":"https://api.github.com/users/gnuradio/orgs","repos_url":"https://api.github.com/users/gnuradio/repos","events_url":"https://api.github.com/users/gnuradio/events{/privacy}","received_events_url":"https://api.github.com/users/gnuradio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gnuradio/gnuradio","description":"GNU Radio","fork":false,"url":"https://api.github.com/repos/gnuradio/gnuradio","forks_url":"https://api.github.com/repos/gnuradio/gnuradio/forks","keys_url":"https://api.github.com/repos/gnuradio/gnuradio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gnuradio/gnuradio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gnuradio/gnuradio/teams","hooks_url":"https://api.github.com/repos/gnuradio/gnuradio/hooks","issue_events_url":"https://api.github.com/repos/gnuradio/gnuradio/issues/events{/number}","events_url":"https://api.github.com/repos/gnuradio/gnuradio/events","assignees_url":"https://api.github.com/repos/gnuradio/gnuradio/assignees{/user}","branches_url":"https://api.github.com/repos/gnuradio/gnuradio/branches{/branch}","tags_url":"https://api.github.com/repos/gnuradio/gnuradio/tags","blobs_url":"https://api.github.com/repos/gnuradio/gnuradio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gnuradio/gnuradio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gnuradio/gnuradio/git/refs{/sha}","trees_url":"https://api.github.com/repos/gnuradio/gnuradio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gnuradio/gnuradio/statuses/{sha}","languages_url":"https://api.github.com/repos/gnuradio/gnuradio/languages","stargazers_url":"https://api.github.com/repos/gnuradio/gnuradio/stargazers","contributors_url":"https://api.github.com/repos/gnuradio/gnuradio/contributors","subscribers_url":"https://api.github.com/repos/gnuradio/gnuradio/subscribers","subscription_url":"https://api.github.com/repos/gnuradio/gnuradio/subscription","commits_url":"https://api.github.com/repos/gnuradio/gnuradio/commits{/sha}","git_commits_url":"https://api.github.com/repos/gnuradio/gnuradio/git/commits{/sha}","comments_url":"https://api.github.com/repos/gnuradio/gnuradio/comments{/number}","issue_comment_url":"https://api.github.com/repos/gnuradio/gnuradio/issues/comments{/number}","contents_url":"https://api.github.com/repos/gnuradio/gnuradio/contents/{+path}","compare_url":"https://api.github.com/repos/gnuradio/gnuradio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gnuradio/gnuradio/merges","archive_url":"https://api.github.com/repos/gnuradio/gnuradio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gnuradio/gnuradio/downloads","issues_url":"https://api.github.com/repos/gnuradio/gnuradio/issues{/number}","pulls_url":"https://api.github.com/repos/gnuradio/gnuradio/pulls{/number}","milestones_url":"https://api.github.com/repos/gnuradio/gnuradio/milestones{/number}","notifications_url":"https://api.github.com/repos/gnuradio/gnuradio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gnuradio/gnuradio/labels{/name}","releases_url":"https://api.github.com/repos/gnuradio/gnuradio/releases{/id}","deployments_url":"https://api.github.com/repos/gnuradio/gnuradio/deployments","created_at":"2011-12-21T22:05:37Z","updated_at":"2016-04-30T12:40:54Z","pushed_at":"2016-05-02T12:32:47Z","git_url":"git://github.com/gnuradio/gnuradio.git","ssh_url":"git@github.com:gnuradio/gnuradio.git","clone_url":"https://github.com/gnuradio/gnuradio.git","svn_url":"https://github.com/gnuradio/gnuradio","homepage":"gnuradio.org","size":54705,"stargazers_count":448,"watchers_count":448,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":435,"mirror_url":null,"open_issues_count":9,"forks":435,"open_issues":9,"watchers":448,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gnuradio/gnuradio/pulls/688"},"html":{"href":"https://github.com/gnuradio/gnuradio/pull/688"},"issue":{"href":"https://api.github.com/repos/gnuradio/gnuradio/issues/688"},"comments":{"href":"https://api.github.com/repos/gnuradio/gnuradio/issues/688/comments"},"review_comments":{"href":"https://api.github.com/repos/gnuradio/gnuradio/pulls/688/comments"},"review_comment":{"href":"https://api.github.com/repos/gnuradio/gnuradio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gnuradio/gnuradio/pulls/688/commits"},"statuses":{"href":"https://api.github.com/repos/gnuradio/gnuradio/statuses/89d6006ed9f4c5df7fa76070189ad5fd302a8344"}}}}