{"action":"created","comment":{"url":"https://api.github.com/repos/Itseez/opencv/pulls/comments/39146688","id":39146688,"diff_hunk":"@@ -244,60 +244,36 @@ static void showHelp(const char * pName, bool welcomeMsg)\n \n static bool parseArguments(int argc, char ** argv)\n {\n-    int index;\n-    GlobalArgs.deviceName = \"Nikon\";\n-    GlobalArgs.output = NULL;\n-    GlobalArgs.fps = DEFAULT_OUTPUT_FPS;\n-    GlobalArgs.minimumFocusStep = 0;\n+    cv::CommandLineParser parser(argc, argv, \"{h help||}{o||}{f||}{m||}{d|0|}{v||}{@device|Nikon|}\");\n+    if (parser.has(\"help\"))\n+        return false;","path":"samples/cpp/autofocus.cpp","position":22,"original_position":22,"commit_id":"e246076995b459a85ae0408242685c62fd51b2c1","original_commit_id":"e246076995b459a85ae0408242685c62fd51b2c1","user":{"login":"mshabunin","id":3304494,"avatar_url":"https://avatars.githubusercontent.com/u/3304494?v=3","gravatar_id":"","url":"https://api.github.com/users/mshabunin","html_url":"https://github.com/mshabunin","followers_url":"https://api.github.com/users/mshabunin/followers","following_url":"https://api.github.com/users/mshabunin/following{/other_user}","gists_url":"https://api.github.com/users/mshabunin/gists{/gist_id}","starred_url":"https://api.github.com/users/mshabunin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mshabunin/subscriptions","organizations_url":"https://api.github.com/users/mshabunin/orgs","repos_url":"https://api.github.com/users/mshabunin/repos","events_url":"https://api.github.com/users/mshabunin/events{/privacy}","received_events_url":"https://api.github.com/users/mshabunin/received_events","type":"User","site_admin":false},"body":"You haven't updated help message for this sample, it should show correct method for providing arguments, for example `-d=<focus-step>` or `-d=<INT>`","created_at":"2015-09-10T10:48:49Z","updated_at":"2015-09-10T10:48:49Z","html_url":"https://github.com/Itseez/opencv/pull/5110#discussion_r39146688","pull_request_url":"https://api.github.com/repos/Itseez/opencv/pulls/5110","_links":{"self":{"href":"https://api.github.com/repos/Itseez/opencv/pulls/comments/39146688"},"html":{"href":"https://github.com/Itseez/opencv/pull/5110#discussion_r39146688"},"pull_request":{"href":"https://api.github.com/repos/Itseez/opencv/pulls/5110"}}},"pull_request":{"url":"https://api.github.com/repos/Itseez/opencv/pulls/5110","id":41403186,"html_url":"https://github.com/Itseez/opencv/pull/5110","diff_url":"https://github.com/Itseez/opencv/pull/5110.diff","patch_url":"https://github.com/Itseez/opencv/pull/5110.patch","issue_url":"https://api.github.com/repos/Itseez/opencv/issues/5110","number":5110,"state":"open","locked":false,"title":"Feature #4848(#3957)","user":{"login":"ValeryTyumen","id":9447950,"avatar_url":"https://avatars.githubusercontent.com/u/9447950?v=3","gravatar_id":"","url":"https://api.github.com/users/ValeryTyumen","html_url":"https://github.com/ValeryTyumen","followers_url":"https://api.github.com/users/ValeryTyumen/followers","following_url":"https://api.github.com/users/ValeryTyumen/following{/other_user}","gists_url":"https://api.github.com/users/ValeryTyumen/gists{/gist_id}","starred_url":"https://api.github.com/users/ValeryTyumen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ValeryTyumen/subscriptions","organizations_url":"https://api.github.com/users/ValeryTyumen/orgs","repos_url":"https://api.github.com/users/ValeryTyumen/repos","events_url":"https://api.github.com/users/ValeryTyumen/events{/privacy}","received_events_url":"https://api.github.com/users/ValeryTyumen/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-01T15:30:47Z","updated_at":"2015-09-10T10:48:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"64516793d0581904f6fe8fdbc3895efdcc9ddbcb","assignee":{"login":"mshabunin","id":3304494,"avatar_url":"https://avatars.githubusercontent.com/u/3304494?v=3","gravatar_id":"","url":"https://api.github.com/users/mshabunin","html_url":"https://github.com/mshabunin","followers_url":"https://api.github.com/users/mshabunin/followers","following_url":"https://api.github.com/users/mshabunin/following{/other_user}","gists_url":"https://api.github.com/users/mshabunin/gists{/gist_id}","starred_url":"https://api.github.com/users/mshabunin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mshabunin/subscriptions","organizations_url":"https://api.github.com/users/mshabunin/orgs","repos_url":"https://api.github.com/users/mshabunin/repos","events_url":"https://api.github.com/users/mshabunin/events{/privacy}","received_events_url":"https://api.github.com/users/mshabunin/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Itseez/opencv/pulls/5110/commits","review_comments_url":"https://api.github.com/repos/Itseez/opencv/pulls/5110/comments","review_comment_url":"https://api.github.com/repos/Itseez/opencv/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Itseez/opencv/issues/5110/comments","statuses_url":"https://api.github.com/repos/Itseez/opencv/statuses/e246076995b459a85ae0408242685c62fd51b2c1","head":{"label":"ValeryTyumen:CommandLineArgs","ref":"CommandLineArgs","sha":"e246076995b459a85ae0408242685c62fd51b2c1","user":{"login":"ValeryTyumen","id":9447950,"avatar_url":"https://avatars.githubusercontent.com/u/9447950?v=3","gravatar_id":"","url":"https://api.github.com/users/ValeryTyumen","html_url":"https://github.com/ValeryTyumen","followers_url":"https://api.github.com/users/ValeryTyumen/followers","following_url":"https://api.github.com/users/ValeryTyumen/following{/other_user}","gists_url":"https://api.github.com/users/ValeryTyumen/gists{/gist_id}","starred_url":"https://api.github.com/users/ValeryTyumen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ValeryTyumen/subscriptions","organizations_url":"https://api.github.com/users/ValeryTyumen/orgs","repos_url":"https://api.github.com/users/ValeryTyumen/repos","events_url":"https://api.github.com/users/ValeryTyumen/events{/privacy}","received_events_url":"https://api.github.com/users/ValeryTyumen/received_events","type":"User","site_admin":false},"repo":{"id":40049135,"name":"opencv","full_name":"ValeryTyumen/opencv","owner":{"login":"ValeryTyumen","id":9447950,"avatar_url":"https://avatars.githubusercontent.com/u/9447950?v=3","gravatar_id":"","url":"https://api.github.com/users/ValeryTyumen","html_url":"https://github.com/ValeryTyumen","followers_url":"https://api.github.com/users/ValeryTyumen/followers","following_url":"https://api.github.com/users/ValeryTyumen/following{/other_user}","gists_url":"https://api.github.com/users/ValeryTyumen/gists{/gist_id}","starred_url":"https://api.github.com/users/ValeryTyumen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ValeryTyumen/subscriptions","organizations_url":"https://api.github.com/users/ValeryTyumen/orgs","repos_url":"https://api.github.com/users/ValeryTyumen/repos","events_url":"https://api.github.com/users/ValeryTyumen/events{/privacy}","received_events_url":"https://api.github.com/users/ValeryTyumen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ValeryTyumen/opencv","description":"Open Source Computer Vision Library","fork":true,"url":"https://api.github.com/repos/ValeryTyumen/opencv","forks_url":"https://api.github.com/repos/ValeryTyumen/opencv/forks","keys_url":"https://api.github.com/repos/ValeryTyumen/opencv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ValeryTyumen/opencv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ValeryTyumen/opencv/teams","hooks_url":"https://api.github.com/repos/ValeryTyumen/opencv/hooks","issue_events_url":"https://api.github.com/repos/ValeryTyumen/opencv/issues/events{/number}","events_url":"https://api.github.com/repos/ValeryTyumen/opencv/events","assignees_url":"https://api.github.com/repos/ValeryTyumen/opencv/assignees{/user}","branches_url":"https://api.github.com/repos/ValeryTyumen/opencv/branches{/branch}","tags_url":"https://api.github.com/repos/ValeryTyumen/opencv/tags","blobs_url":"https://api.github.com/repos/ValeryTyumen/opencv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ValeryTyumen/opencv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ValeryTyumen/opencv/git/refs{/sha}","trees_url":"https://api.github.com/repos/ValeryTyumen/opencv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ValeryTyumen/opencv/statuses/{sha}","languages_url":"https://api.github.com/repos/ValeryTyumen/opencv/languages","stargazers_url":"https://api.github.com/repos/ValeryTyumen/opencv/stargazers","contributors_url":"https://api.github.com/repos/ValeryTyumen/opencv/contributors","subscribers_url":"https://api.github.com/repos/ValeryTyumen/opencv/subscribers","subscription_url":"https://api.github.com/repos/ValeryTyumen/opencv/subscription","commits_url":"https://api.github.com/repos/ValeryTyumen/opencv/commits{/sha}","git_commits_url":"https://api.github.com/repos/ValeryTyumen/opencv/git/commits{/sha}","comments_url":"https://api.github.com/repos/ValeryTyumen/opencv/comments{/number}","issue_comment_url":"https://api.github.com/repos/ValeryTyumen/opencv/issues/comments{/number}","contents_url":"https://api.github.com/repos/ValeryTyumen/opencv/contents/{+path}","compare_url":"https://api.github.com/repos/ValeryTyumen/opencv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ValeryTyumen/opencv/merges","archive_url":"https://api.github.com/repos/ValeryTyumen/opencv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ValeryTyumen/opencv/downloads","issues_url":"https://api.github.com/repos/ValeryTyumen/opencv/issues{/number}","pulls_url":"https://api.github.com/repos/ValeryTyumen/opencv/pulls{/number}","milestones_url":"https://api.github.com/repos/ValeryTyumen/opencv/milestones{/number}","notifications_url":"https://api.github.com/repos/ValeryTyumen/opencv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ValeryTyumen/opencv/labels{/name}","releases_url":"https://api.github.com/repos/ValeryTyumen/opencv/releases{/id}","created_at":"2015-08-01T14:29:04Z","updated_at":"2015-08-01T14:29:17Z","pushed_at":"2015-08-28T19:09:20Z","git_url":"git://github.com/ValeryTyumen/opencv.git","ssh_url":"git@github.com:ValeryTyumen/opencv.git","clone_url":"https://github.com/ValeryTyumen/opencv.git","svn_url":"https://github.com/ValeryTyumen/opencv","homepage":"opencv.org","size":443457,"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":"Itseez:master","ref":"master","sha":"157c94c03e3cf091640b8866ea19bd3973a530fd","user":{"login":"Itseez","id":1786446,"avatar_url":"https://avatars.githubusercontent.com/u/1786446?v=3","gravatar_id":"","url":"https://api.github.com/users/Itseez","html_url":"https://github.com/Itseez","followers_url":"https://api.github.com/users/Itseez/followers","following_url":"https://api.github.com/users/Itseez/following{/other_user}","gists_url":"https://api.github.com/users/Itseez/gists{/gist_id}","starred_url":"https://api.github.com/users/Itseez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Itseez/subscriptions","organizations_url":"https://api.github.com/users/Itseez/orgs","repos_url":"https://api.github.com/users/Itseez/repos","events_url":"https://api.github.com/users/Itseez/events{/privacy}","received_events_url":"https://api.github.com/users/Itseez/received_events","type":"Organization","site_admin":false},"repo":{"id":5108051,"name":"opencv","full_name":"Itseez/opencv","owner":{"login":"Itseez","id":1786446,"avatar_url":"https://avatars.githubusercontent.com/u/1786446?v=3","gravatar_id":"","url":"https://api.github.com/users/Itseez","html_url":"https://github.com/Itseez","followers_url":"https://api.github.com/users/Itseez/followers","following_url":"https://api.github.com/users/Itseez/following{/other_user}","gists_url":"https://api.github.com/users/Itseez/gists{/gist_id}","starred_url":"https://api.github.com/users/Itseez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Itseez/subscriptions","organizations_url":"https://api.github.com/users/Itseez/orgs","repos_url":"https://api.github.com/users/Itseez/repos","events_url":"https://api.github.com/users/Itseez/events{/privacy}","received_events_url":"https://api.github.com/users/Itseez/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Itseez/opencv","description":"Open Source Computer Vision Library","fork":false,"url":"https://api.github.com/repos/Itseez/opencv","forks_url":"https://api.github.com/repos/Itseez/opencv/forks","keys_url":"https://api.github.com/repos/Itseez/opencv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Itseez/opencv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Itseez/opencv/teams","hooks_url":"https://api.github.com/repos/Itseez/opencv/hooks","issue_events_url":"https://api.github.com/repos/Itseez/opencv/issues/events{/number}","events_url":"https://api.github.com/repos/Itseez/opencv/events","assignees_url":"https://api.github.com/repos/Itseez/opencv/assignees{/user}","branches_url":"https://api.github.com/repos/Itseez/opencv/branches{/branch}","tags_url":"https://api.github.com/repos/Itseez/opencv/tags","blobs_url":"https://api.github.com/repos/Itseez/opencv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Itseez/opencv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Itseez/opencv/git/refs{/sha}","trees_url":"https://api.github.com/repos/Itseez/opencv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Itseez/opencv/statuses/{sha}","languages_url":"https://api.github.com/repos/Itseez/opencv/languages","stargazers_url":"https://api.github.com/repos/Itseez/opencv/stargazers","contributors_url":"https://api.github.com/repos/Itseez/opencv/contributors","subscribers_url":"https://api.github.com/repos/Itseez/opencv/subscribers","subscription_url":"https://api.github.com/repos/Itseez/opencv/subscription","commits_url":"https://api.github.com/repos/Itseez/opencv/commits{/sha}","git_commits_url":"https://api.github.com/repos/Itseez/opencv/git/commits{/sha}","comments_url":"https://api.github.com/repos/Itseez/opencv/comments{/number}","issue_comment_url":"https://api.github.com/repos/Itseez/opencv/issues/comments{/number}","contents_url":"https://api.github.com/repos/Itseez/opencv/contents/{+path}","compare_url":"https://api.github.com/repos/Itseez/opencv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Itseez/opencv/merges","archive_url":"https://api.github.com/repos/Itseez/opencv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Itseez/opencv/downloads","issues_url":"https://api.github.com/repos/Itseez/opencv/issues{/number}","pulls_url":"https://api.github.com/repos/Itseez/opencv/pulls{/number}","milestones_url":"https://api.github.com/repos/Itseez/opencv/milestones{/number}","notifications_url":"https://api.github.com/repos/Itseez/opencv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Itseez/opencv/labels{/name}","releases_url":"https://api.github.com/repos/Itseez/opencv/releases{/id}","created_at":"2012-07-19T09:40:17Z","updated_at":"2015-09-10T10:00:04Z","pushed_at":"2015-09-10T09:51:28Z","git_url":"git://github.com/Itseez/opencv.git","ssh_url":"git@github.com:Itseez/opencv.git","clone_url":"https://github.com/Itseez/opencv.git","svn_url":"https://github.com/Itseez/opencv","homepage":"opencv.org","size":1158824,"stargazers_count":6522,"watchers_count":6522,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5773,"mirror_url":null,"open_issues_count":901,"forks":5773,"open_issues":901,"watchers":6522,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Itseez/opencv/pulls/5110"},"html":{"href":"https://github.com/Itseez/opencv/pull/5110"},"issue":{"href":"https://api.github.com/repos/Itseez/opencv/issues/5110"},"comments":{"href":"https://api.github.com/repos/Itseez/opencv/issues/5110/comments"},"review_comments":{"href":"https://api.github.com/repos/Itseez/opencv/pulls/5110/comments"},"review_comment":{"href":"https://api.github.com/repos/Itseez/opencv/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Itseez/opencv/pulls/5110/commits"},"statuses":{"href":"https://api.github.com/repos/Itseez/opencv/statuses/e246076995b459a85ae0408242685c62fd51b2c1"}}}}