{"action":"created","comment":{"url":"https://api.github.com/repos/yandex/porto/pulls/comments/38741381","id":38741381,"diff_hunk":"@@ -376,25 +378,25 @@ class TSetPropertyCmd : public ICmd {\n     }\n };\n \n-class TGetDataCmd : public ICmd {\n+class TGetDataCmd final : public ICmd {\n public:\n     TGetDataCmd(TPortoAPI *api) : ICmd(api, \"dget\", 2, \"[-k] <container> <data> [data...]\", \"get raw container data\") {}\n \n-    int Execute(int argc, char *argv[]) {\n+    int Execute(TCommandEnviroment *env) final override {\n         bool printKey = false;\n-        int start = GetOpt(argc, argv, {\n+        const auto &args = env->GetOpts({","path":"src/portoctl.cpp","position":108,"original_position":108,"commit_id":"355bf3c675a6d6ef363cad753170058b3fe350a8","original_commit_id":"355bf3c675a6d6ef363cad753170058b3fe350a8","user":{"login":"dreamer-dead","id":2077170,"avatar_url":"https://avatars.githubusercontent.com/u/2077170?v=3","gravatar_id":"","url":"https://api.github.com/users/dreamer-dead","html_url":"https://github.com/dreamer-dead","followers_url":"https://api.github.com/users/dreamer-dead/followers","following_url":"https://api.github.com/users/dreamer-dead/following{/other_user}","gists_url":"https://api.github.com/users/dreamer-dead/gists{/gist_id}","starred_url":"https://api.github.com/users/dreamer-dead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dreamer-dead/subscriptions","organizations_url":"https://api.github.com/users/dreamer-dead/orgs","repos_url":"https://api.github.com/users/dreamer-dead/repos","events_url":"https://api.github.com/users/dreamer-dead/events{/privacy}","received_events_url":"https://api.github.com/users/dreamer-dead/received_events","type":"User","site_admin":false},"body":"Unfortunately, I was unable to move these static defined options to class members (\r\nIt uses closures with local vars and class-scope vars and such change will lead to massive commands rewrite.","created_at":"2015-09-04T11:05:43Z","updated_at":"2015-09-04T11:05:43Z","html_url":"https://github.com/yandex/porto/pull/4#discussion_r38741381","pull_request_url":"https://api.github.com/repos/yandex/porto/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/yandex/porto/pulls/comments/38741381"},"html":{"href":"https://github.com/yandex/porto/pull/4#discussion_r38741381"},"pull_request":{"href":"https://api.github.com/repos/yandex/porto/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/yandex/porto/pulls/4","id":44022260,"html_url":"https://github.com/yandex/porto/pull/4","diff_url":"https://github.com/yandex/porto/pull/4.diff","patch_url":"https://github.com/yandex/porto/pull/4.patch","issue_url":"https://api.github.com/repos/yandex/porto/issues/4","number":4,"state":"open","locked":false,"title":"Add some const fixes and use C++11 features in cli.{hpp,cpp}","user":{"login":"dreamer-dead","id":2077170,"avatar_url":"https://avatars.githubusercontent.com/u/2077170?v=3","gravatar_id":"","url":"https://api.github.com/users/dreamer-dead","html_url":"https://github.com/dreamer-dead","followers_url":"https://api.github.com/users/dreamer-dead/followers","following_url":"https://api.github.com/users/dreamer-dead/following{/other_user}","gists_url":"https://api.github.com/users/dreamer-dead/gists{/gist_id}","starred_url":"https://api.github.com/users/dreamer-dead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dreamer-dead/subscriptions","organizations_url":"https://api.github.com/users/dreamer-dead/orgs","repos_url":"https://api.github.com/users/dreamer-dead/repos","events_url":"https://api.github.com/users/dreamer-dead/events{/privacy}","received_events_url":"https://api.github.com/users/dreamer-dead/received_events","type":"User","site_admin":false},"body":"Hi!\r\nCould you take a look at this request please?","created_at":"2015-09-02T17:55:19Z","updated_at":"2015-09-04T11:05:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6d4b80a80f8c0787460a767008e5af77329ab5fe","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yandex/porto/pulls/4/commits","review_comments_url":"https://api.github.com/repos/yandex/porto/pulls/4/comments","review_comment_url":"https://api.github.com/repos/yandex/porto/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yandex/porto/issues/4/comments","statuses_url":"https://api.github.com/repos/yandex/porto/statuses/355bf3c675a6d6ef363cad753170058b3fe350a8","head":{"label":"dreamer-dead:fix-cli-01","ref":"fix-cli-01","sha":"355bf3c675a6d6ef363cad753170058b3fe350a8","user":{"login":"dreamer-dead","id":2077170,"avatar_url":"https://avatars.githubusercontent.com/u/2077170?v=3","gravatar_id":"","url":"https://api.github.com/users/dreamer-dead","html_url":"https://github.com/dreamer-dead","followers_url":"https://api.github.com/users/dreamer-dead/followers","following_url":"https://api.github.com/users/dreamer-dead/following{/other_user}","gists_url":"https://api.github.com/users/dreamer-dead/gists{/gist_id}","starred_url":"https://api.github.com/users/dreamer-dead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dreamer-dead/subscriptions","organizations_url":"https://api.github.com/users/dreamer-dead/orgs","repos_url":"https://api.github.com/users/dreamer-dead/repos","events_url":"https://api.github.com/users/dreamer-dead/events{/privacy}","received_events_url":"https://api.github.com/users/dreamer-dead/received_events","type":"User","site_admin":false},"repo":{"id":41797717,"name":"porto","full_name":"dreamer-dead/porto","owner":{"login":"dreamer-dead","id":2077170,"avatar_url":"https://avatars.githubusercontent.com/u/2077170?v=3","gravatar_id":"","url":"https://api.github.com/users/dreamer-dead","html_url":"https://github.com/dreamer-dead","followers_url":"https://api.github.com/users/dreamer-dead/followers","following_url":"https://api.github.com/users/dreamer-dead/following{/other_user}","gists_url":"https://api.github.com/users/dreamer-dead/gists{/gist_id}","starred_url":"https://api.github.com/users/dreamer-dead/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dreamer-dead/subscriptions","organizations_url":"https://api.github.com/users/dreamer-dead/orgs","repos_url":"https://api.github.com/users/dreamer-dead/repos","events_url":"https://api.github.com/users/dreamer-dead/events{/privacy}","received_events_url":"https://api.github.com/users/dreamer-dead/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dreamer-dead/porto","description":"Yet another Linux containers management system","fork":true,"url":"https://api.github.com/repos/dreamer-dead/porto","forks_url":"https://api.github.com/repos/dreamer-dead/porto/forks","keys_url":"https://api.github.com/repos/dreamer-dead/porto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dreamer-dead/porto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dreamer-dead/porto/teams","hooks_url":"https://api.github.com/repos/dreamer-dead/porto/hooks","issue_events_url":"https://api.github.com/repos/dreamer-dead/porto/issues/events{/number}","events_url":"https://api.github.com/repos/dreamer-dead/porto/events","assignees_url":"https://api.github.com/repos/dreamer-dead/porto/assignees{/user}","branches_url":"https://api.github.com/repos/dreamer-dead/porto/branches{/branch}","tags_url":"https://api.github.com/repos/dreamer-dead/porto/tags","blobs_url":"https://api.github.com/repos/dreamer-dead/porto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dreamer-dead/porto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dreamer-dead/porto/git/refs{/sha}","trees_url":"https://api.github.com/repos/dreamer-dead/porto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dreamer-dead/porto/statuses/{sha}","languages_url":"https://api.github.com/repos/dreamer-dead/porto/languages","stargazers_url":"https://api.github.com/repos/dreamer-dead/porto/stargazers","contributors_url":"https://api.github.com/repos/dreamer-dead/porto/contributors","subscribers_url":"https://api.github.com/repos/dreamer-dead/porto/subscribers","subscription_url":"https://api.github.com/repos/dreamer-dead/porto/subscription","commits_url":"https://api.github.com/repos/dreamer-dead/porto/commits{/sha}","git_commits_url":"https://api.github.com/repos/dreamer-dead/porto/git/commits{/sha}","comments_url":"https://api.github.com/repos/dreamer-dead/porto/comments{/number}","issue_comment_url":"https://api.github.com/repos/dreamer-dead/porto/issues/comments{/number}","contents_url":"https://api.github.com/repos/dreamer-dead/porto/contents/{+path}","compare_url":"https://api.github.com/repos/dreamer-dead/porto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dreamer-dead/porto/merges","archive_url":"https://api.github.com/repos/dreamer-dead/porto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dreamer-dead/porto/downloads","issues_url":"https://api.github.com/repos/dreamer-dead/porto/issues{/number}","pulls_url":"https://api.github.com/repos/dreamer-dead/porto/pulls{/number}","milestones_url":"https://api.github.com/repos/dreamer-dead/porto/milestones{/number}","notifications_url":"https://api.github.com/repos/dreamer-dead/porto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dreamer-dead/porto/labels{/name}","releases_url":"https://api.github.com/repos/dreamer-dead/porto/releases{/id}","created_at":"2015-09-02T11:38:33Z","updated_at":"2015-09-02T11:38:33Z","pushed_at":"2015-09-03T17:09:18Z","git_url":"git://github.com/dreamer-dead/porto.git","ssh_url":"git@github.com:dreamer-dead/porto.git","clone_url":"https://github.com/dreamer-dead/porto.git","svn_url":"https://github.com/dreamer-dead/porto","homepage":null,"size":295,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"base":{"label":"yandex:master","ref":"master","sha":"a545252478af668962a4d27857fc048bc81aed08","user":{"login":"yandex","id":7409213,"avatar_url":"https://avatars.githubusercontent.com/u/7409213?v=3","gravatar_id":"","url":"https://api.github.com/users/yandex","html_url":"https://github.com/yandex","followers_url":"https://api.github.com/users/yandex/followers","following_url":"https://api.github.com/users/yandex/following{/other_user}","gists_url":"https://api.github.com/users/yandex/gists{/gist_id}","starred_url":"https://api.github.com/users/yandex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yandex/subscriptions","organizations_url":"https://api.github.com/users/yandex/orgs","repos_url":"https://api.github.com/users/yandex/repos","events_url":"https://api.github.com/users/yandex/events{/privacy}","received_events_url":"https://api.github.com/users/yandex/received_events","type":"Organization","site_admin":false},"repo":{"id":41472626,"name":"porto","full_name":"yandex/porto","owner":{"login":"yandex","id":7409213,"avatar_url":"https://avatars.githubusercontent.com/u/7409213?v=3","gravatar_id":"","url":"https://api.github.com/users/yandex","html_url":"https://github.com/yandex","followers_url":"https://api.github.com/users/yandex/followers","following_url":"https://api.github.com/users/yandex/following{/other_user}","gists_url":"https://api.github.com/users/yandex/gists{/gist_id}","starred_url":"https://api.github.com/users/yandex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yandex/subscriptions","organizations_url":"https://api.github.com/users/yandex/orgs","repos_url":"https://api.github.com/users/yandex/repos","events_url":"https://api.github.com/users/yandex/events{/privacy}","received_events_url":"https://api.github.com/users/yandex/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yandex/porto","description":"Yet another Linux containers management system","fork":false,"url":"https://api.github.com/repos/yandex/porto","forks_url":"https://api.github.com/repos/yandex/porto/forks","keys_url":"https://api.github.com/repos/yandex/porto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yandex/porto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yandex/porto/teams","hooks_url":"https://api.github.com/repos/yandex/porto/hooks","issue_events_url":"https://api.github.com/repos/yandex/porto/issues/events{/number}","events_url":"https://api.github.com/repos/yandex/porto/events","assignees_url":"https://api.github.com/repos/yandex/porto/assignees{/user}","branches_url":"https://api.github.com/repos/yandex/porto/branches{/branch}","tags_url":"https://api.github.com/repos/yandex/porto/tags","blobs_url":"https://api.github.com/repos/yandex/porto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yandex/porto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yandex/porto/git/refs{/sha}","trees_url":"https://api.github.com/repos/yandex/porto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yandex/porto/statuses/{sha}","languages_url":"https://api.github.com/repos/yandex/porto/languages","stargazers_url":"https://api.github.com/repos/yandex/porto/stargazers","contributors_url":"https://api.github.com/repos/yandex/porto/contributors","subscribers_url":"https://api.github.com/repos/yandex/porto/subscribers","subscription_url":"https://api.github.com/repos/yandex/porto/subscription","commits_url":"https://api.github.com/repos/yandex/porto/commits{/sha}","git_commits_url":"https://api.github.com/repos/yandex/porto/git/commits{/sha}","comments_url":"https://api.github.com/repos/yandex/porto/comments{/number}","issue_comment_url":"https://api.github.com/repos/yandex/porto/issues/comments{/number}","contents_url":"https://api.github.com/repos/yandex/porto/contents/{+path}","compare_url":"https://api.github.com/repos/yandex/porto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yandex/porto/merges","archive_url":"https://api.github.com/repos/yandex/porto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yandex/porto/downloads","issues_url":"https://api.github.com/repos/yandex/porto/issues{/number}","pulls_url":"https://api.github.com/repos/yandex/porto/pulls{/number}","milestones_url":"https://api.github.com/repos/yandex/porto/milestones{/number}","notifications_url":"https://api.github.com/repos/yandex/porto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yandex/porto/labels{/name}","releases_url":"https://api.github.com/repos/yandex/porto/releases{/id}","created_at":"2015-08-27T07:39:46Z","updated_at":"2015-09-02T15:42:04Z","pushed_at":"2015-09-03T17:09:20Z","git_url":"git://github.com/yandex/porto.git","ssh_url":"git@github.com:yandex/porto.git","clone_url":"https://github.com/yandex/porto.git","svn_url":"https://github.com/yandex/porto","homepage":null,"size":374,"stargazers_count":41,"watchers_count":41,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":1,"forks":7,"open_issues":1,"watchers":41,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yandex/porto/pulls/4"},"html":{"href":"https://github.com/yandex/porto/pull/4"},"issue":{"href":"https://api.github.com/repos/yandex/porto/issues/4"},"comments":{"href":"https://api.github.com/repos/yandex/porto/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/yandex/porto/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/yandex/porto/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yandex/porto/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/yandex/porto/statuses/355bf3c675a6d6ef363cad753170058b3fe350a8"}}}}