{"action":"opened","number":1097,"pull_request":{"url":"https://api.github.com/repos/PDAL/PDAL/pulls/1097","id":58052823,"html_url":"https://github.com/PDAL/PDAL/pull/1097","diff_url":"https://github.com/PDAL/PDAL/pull/1097.diff","patch_url":"https://github.com/PDAL/PDAL/pull/1097.patch","issue_url":"https://api.github.com/repos/PDAL/PDAL/issues/1097","number":1097,"state":"open","locked":false,"title":"Programargs","user":{"login":"abellgithub","id":1316400,"avatar_url":"https://avatars.githubusercontent.com/u/1316400?v=3","gravatar_id":"","url":"https://api.github.com/users/abellgithub","html_url":"https://github.com/abellgithub","followers_url":"https://api.github.com/users/abellgithub/followers","following_url":"https://api.github.com/users/abellgithub/following{/other_user}","gists_url":"https://api.github.com/users/abellgithub/gists{/gist_id}","starred_url":"https://api.github.com/users/abellgithub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abellgithub/subscriptions","organizations_url":"https://api.github.com/users/abellgithub/orgs","repos_url":"https://api.github.com/users/abellgithub/repos","events_url":"https://api.github.com/users/abellgithub/events{/privacy}","received_events_url":"https://api.github.com/users/abellgithub/received_events","type":"User","site_admin":false},"body":"I'll write some doxy for this, but it seems done otherwise.  Let me know if you have comments.  Here are a few differences from boost::program_options:\r\n\r\n1) Positional arguments are now required by default.  If they're missing, the error is handled/reported by the ProgramArgs class and doesn't need to be handled by the kernel.\r\n2) Multitoken arguments are handled by binding a vector<type> variable to the argument.\r\n3) Arguments not recognized are reported as errors.  The extra stage options aren't counted as arguments for this purpose right now, but if you say `pdal translate --foo`, you'll get an error.\r\n\r\nI'm sure there are other differences, but it's mostly the same.  The help output is a little different.  Here's an example:\r\n\r\n```\r\nprogramargs $ ./pdal translate -h\r\nusage: pdal translate [options] input output\r\noptions:\r\n  --help, -h         Print help message\r\n  --debug, -d        Enable debug mode\r\n  --developer-debug  Enable developer debug (don't trap exceptions)\r\n  --label            A string to label the process with\r\n  --verbose, -v      Set verbose message level\r\n  --visualize        Visualize result\r\n  --stdin, -s        Read pipeline XML from stdin\r\n  --scale            A comma-separated or quoted, space-separated list of\r\n      scales to set on the output file: --scale 0.1,0.1,0.00001 --scale \"0.1\r\n      0.1 0.00001\"\r\n  --offset           A comma-separated or quoted, space-separated list of\r\n      offsets to set on the output file: --offset 0,0,0 --offset \"1234 5678\r\n      91011\"\r\n  --input, -i        Input filename\r\n  --output, -o       Output filename\r\n  --pipeline, -p     Pipeline output\r\n  --reader, -r       Reader type\r\n  --filter, -f       Filter type\r\n  --writer, -w       Writer type\r\n\r\nFor more information, see the full documentation for PDAL at http://pdal.io/\r\n```","created_at":"2016-02-02T21:28:25Z","updated_at":"2016-02-02T21:28:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/PDAL/PDAL/pulls/1097/commits","review_comments_url":"https://api.github.com/repos/PDAL/PDAL/pulls/1097/comments","review_comment_url":"https://api.github.com/repos/PDAL/PDAL/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PDAL/PDAL/issues/1097/comments","statuses_url":"https://api.github.com/repos/PDAL/PDAL/statuses/f3174fda3b05ebcd8beaeef592608555e5fc9d09","head":{"label":"PDAL:programargs","ref":"programargs","sha":"f3174fda3b05ebcd8beaeef592608555e5fc9d09","user":{"login":"PDAL","id":859797,"avatar_url":"https://avatars.githubusercontent.com/u/859797?v=3","gravatar_id":"","url":"https://api.github.com/users/PDAL","html_url":"https://github.com/PDAL","followers_url":"https://api.github.com/users/PDAL/followers","following_url":"https://api.github.com/users/PDAL/following{/other_user}","gists_url":"https://api.github.com/users/PDAL/gists{/gist_id}","starred_url":"https://api.github.com/users/PDAL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PDAL/subscriptions","organizations_url":"https://api.github.com/users/PDAL/orgs","repos_url":"https://api.github.com/users/PDAL/repos","events_url":"https://api.github.com/users/PDAL/events{/privacy}","received_events_url":"https://api.github.com/users/PDAL/received_events","type":"Organization","site_admin":false},"repo":{"id":2234863,"name":"PDAL","full_name":"PDAL/PDAL","owner":{"login":"PDAL","id":859797,"avatar_url":"https://avatars.githubusercontent.com/u/859797?v=3","gravatar_id":"","url":"https://api.github.com/users/PDAL","html_url":"https://github.com/PDAL","followers_url":"https://api.github.com/users/PDAL/followers","following_url":"https://api.github.com/users/PDAL/following{/other_user}","gists_url":"https://api.github.com/users/PDAL/gists{/gist_id}","starred_url":"https://api.github.com/users/PDAL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PDAL/subscriptions","organizations_url":"https://api.github.com/users/PDAL/orgs","repos_url":"https://api.github.com/users/PDAL/repos","events_url":"https://api.github.com/users/PDAL/events{/privacy}","received_events_url":"https://api.github.com/users/PDAL/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PDAL/PDAL","description":"PDAL is Point Data Abstraction Library. GDAL for point cloud data.","fork":false,"url":"https://api.github.com/repos/PDAL/PDAL","forks_url":"https://api.github.com/repos/PDAL/PDAL/forks","keys_url":"https://api.github.com/repos/PDAL/PDAL/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PDAL/PDAL/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PDAL/PDAL/teams","hooks_url":"https://api.github.com/repos/PDAL/PDAL/hooks","issue_events_url":"https://api.github.com/repos/PDAL/PDAL/issues/events{/number}","events_url":"https://api.github.com/repos/PDAL/PDAL/events","assignees_url":"https://api.github.com/repos/PDAL/PDAL/assignees{/user}","branches_url":"https://api.github.com/repos/PDAL/PDAL/branches{/branch}","tags_url":"https://api.github.com/repos/PDAL/PDAL/tags","blobs_url":"https://api.github.com/repos/PDAL/PDAL/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PDAL/PDAL/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PDAL/PDAL/git/refs{/sha}","trees_url":"https://api.github.com/repos/PDAL/PDAL/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PDAL/PDAL/statuses/{sha}","languages_url":"https://api.github.com/repos/PDAL/PDAL/languages","stargazers_url":"https://api.github.com/repos/PDAL/PDAL/stargazers","contributors_url":"https://api.github.com/repos/PDAL/PDAL/contributors","subscribers_url":"https://api.github.com/repos/PDAL/PDAL/subscribers","subscription_url":"https://api.github.com/repos/PDAL/PDAL/subscription","commits_url":"https://api.github.com/repos/PDAL/PDAL/commits{/sha}","git_commits_url":"https://api.github.com/repos/PDAL/PDAL/git/commits{/sha}","comments_url":"https://api.github.com/repos/PDAL/PDAL/comments{/number}","issue_comment_url":"https://api.github.com/repos/PDAL/PDAL/issues/comments{/number}","contents_url":"https://api.github.com/repos/PDAL/PDAL/contents/{+path}","compare_url":"https://api.github.com/repos/PDAL/PDAL/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PDAL/PDAL/merges","archive_url":"https://api.github.com/repos/PDAL/PDAL/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PDAL/PDAL/downloads","issues_url":"https://api.github.com/repos/PDAL/PDAL/issues{/number}","pulls_url":"https://api.github.com/repos/PDAL/PDAL/pulls{/number}","milestones_url":"https://api.github.com/repos/PDAL/PDAL/milestones{/number}","notifications_url":"https://api.github.com/repos/PDAL/PDAL/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PDAL/PDAL/labels{/name}","releases_url":"https://api.github.com/repos/PDAL/PDAL/releases{/id}","deployments_url":"https://api.github.com/repos/PDAL/PDAL/deployments","created_at":"2011-08-19T15:57:50Z","updated_at":"2016-01-20T13:05:03Z","pushed_at":"2016-02-02T21:01:57Z","git_url":"git://github.com/PDAL/PDAL.git","ssh_url":"git@github.com:PDAL/PDAL.git","clone_url":"https://github.com/PDAL/PDAL.git","svn_url":"https://github.com/PDAL/PDAL","homepage":"http://pdal.io","size":78713,"stargazers_count":110,"watchers_count":110,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":82,"mirror_url":null,"open_issues_count":63,"forks":82,"open_issues":63,"watchers":110,"default_branch":"master"}},"base":{"label":"PDAL:master","ref":"master","sha":"3c6d3920ac540cd058054af7c1dc2f6aafe8eb36","user":{"login":"PDAL","id":859797,"avatar_url":"https://avatars.githubusercontent.com/u/859797?v=3","gravatar_id":"","url":"https://api.github.com/users/PDAL","html_url":"https://github.com/PDAL","followers_url":"https://api.github.com/users/PDAL/followers","following_url":"https://api.github.com/users/PDAL/following{/other_user}","gists_url":"https://api.github.com/users/PDAL/gists{/gist_id}","starred_url":"https://api.github.com/users/PDAL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PDAL/subscriptions","organizations_url":"https://api.github.com/users/PDAL/orgs","repos_url":"https://api.github.com/users/PDAL/repos","events_url":"https://api.github.com/users/PDAL/events{/privacy}","received_events_url":"https://api.github.com/users/PDAL/received_events","type":"Organization","site_admin":false},"repo":{"id":2234863,"name":"PDAL","full_name":"PDAL/PDAL","owner":{"login":"PDAL","id":859797,"avatar_url":"https://avatars.githubusercontent.com/u/859797?v=3","gravatar_id":"","url":"https://api.github.com/users/PDAL","html_url":"https://github.com/PDAL","followers_url":"https://api.github.com/users/PDAL/followers","following_url":"https://api.github.com/users/PDAL/following{/other_user}","gists_url":"https://api.github.com/users/PDAL/gists{/gist_id}","starred_url":"https://api.github.com/users/PDAL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PDAL/subscriptions","organizations_url":"https://api.github.com/users/PDAL/orgs","repos_url":"https://api.github.com/users/PDAL/repos","events_url":"https://api.github.com/users/PDAL/events{/privacy}","received_events_url":"https://api.github.com/users/PDAL/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PDAL/PDAL","description":"PDAL is Point Data Abstraction Library. GDAL for point cloud data.","fork":false,"url":"https://api.github.com/repos/PDAL/PDAL","forks_url":"https://api.github.com/repos/PDAL/PDAL/forks","keys_url":"https://api.github.com/repos/PDAL/PDAL/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PDAL/PDAL/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PDAL/PDAL/teams","hooks_url":"https://api.github.com/repos/PDAL/PDAL/hooks","issue_events_url":"https://api.github.com/repos/PDAL/PDAL/issues/events{/number}","events_url":"https://api.github.com/repos/PDAL/PDAL/events","assignees_url":"https://api.github.com/repos/PDAL/PDAL/assignees{/user}","branches_url":"https://api.github.com/repos/PDAL/PDAL/branches{/branch}","tags_url":"https://api.github.com/repos/PDAL/PDAL/tags","blobs_url":"https://api.github.com/repos/PDAL/PDAL/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PDAL/PDAL/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PDAL/PDAL/git/refs{/sha}","trees_url":"https://api.github.com/repos/PDAL/PDAL/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PDAL/PDAL/statuses/{sha}","languages_url":"https://api.github.com/repos/PDAL/PDAL/languages","stargazers_url":"https://api.github.com/repos/PDAL/PDAL/stargazers","contributors_url":"https://api.github.com/repos/PDAL/PDAL/contributors","subscribers_url":"https://api.github.com/repos/PDAL/PDAL/subscribers","subscription_url":"https://api.github.com/repos/PDAL/PDAL/subscription","commits_url":"https://api.github.com/repos/PDAL/PDAL/commits{/sha}","git_commits_url":"https://api.github.com/repos/PDAL/PDAL/git/commits{/sha}","comments_url":"https://api.github.com/repos/PDAL/PDAL/comments{/number}","issue_comment_url":"https://api.github.com/repos/PDAL/PDAL/issues/comments{/number}","contents_url":"https://api.github.com/repos/PDAL/PDAL/contents/{+path}","compare_url":"https://api.github.com/repos/PDAL/PDAL/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PDAL/PDAL/merges","archive_url":"https://api.github.com/repos/PDAL/PDAL/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PDAL/PDAL/downloads","issues_url":"https://api.github.com/repos/PDAL/PDAL/issues{/number}","pulls_url":"https://api.github.com/repos/PDAL/PDAL/pulls{/number}","milestones_url":"https://api.github.com/repos/PDAL/PDAL/milestones{/number}","notifications_url":"https://api.github.com/repos/PDAL/PDAL/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PDAL/PDAL/labels{/name}","releases_url":"https://api.github.com/repos/PDAL/PDAL/releases{/id}","deployments_url":"https://api.github.com/repos/PDAL/PDAL/deployments","created_at":"2011-08-19T15:57:50Z","updated_at":"2016-01-20T13:05:03Z","pushed_at":"2016-02-02T21:01:57Z","git_url":"git://github.com/PDAL/PDAL.git","ssh_url":"git@github.com:PDAL/PDAL.git","clone_url":"https://github.com/PDAL/PDAL.git","svn_url":"https://github.com/PDAL/PDAL","homepage":"http://pdal.io","size":78713,"stargazers_count":110,"watchers_count":110,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":82,"mirror_url":null,"open_issues_count":63,"forks":82,"open_issues":63,"watchers":110,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PDAL/PDAL/pulls/1097"},"html":{"href":"https://github.com/PDAL/PDAL/pull/1097"},"issue":{"href":"https://api.github.com/repos/PDAL/PDAL/issues/1097"},"comments":{"href":"https://api.github.com/repos/PDAL/PDAL/issues/1097/comments"},"review_comments":{"href":"https://api.github.com/repos/PDAL/PDAL/pulls/1097/comments"},"review_comment":{"href":"https://api.github.com/repos/PDAL/PDAL/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PDAL/PDAL/pulls/1097/commits"},"statuses":{"href":"https://api.github.com/repos/PDAL/PDAL/statuses/f3174fda3b05ebcd8beaeef592608555e5fc9d09"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":9,"additions":1457,"deletions":945,"changed_files":46}}