{"action":"opened","number":27,"pull_request":{"url":"https://api.github.com/repos/amireh/lua_cliargs/pulls/27","id":28340289,"html_url":"https://github.com/amireh/lua_cliargs/pull/27","diff_url":"https://github.com/amireh/lua_cliargs/pull/27.diff","patch_url":"https://github.com/amireh/lua_cliargs/pull/27.patch","issue_url":"https://api.github.com/repos/amireh/lua_cliargs/issues/27","number":27,"state":"open","locked":false,"title":"Fix short-key notation for optional arguments","user":{"login":"o-lim","id":10095424,"avatar_url":"https://avatars.githubusercontent.com/u/10095424?v=3","gravatar_id":"","url":"https://api.github.com/users/o-lim","html_url":"https://github.com/o-lim","followers_url":"https://api.github.com/users/o-lim/followers","following_url":"https://api.github.com/users/o-lim/following{/other_user}","gists_url":"https://api.github.com/users/o-lim/gists{/gist_id}","starred_url":"https://api.github.com/users/o-lim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/o-lim/subscriptions","organizations_url":"https://api.github.com/users/o-lim/orgs","repos_url":"https://api.github.com/users/o-lim/repos","events_url":"https://api.github.com/users/o-lim/events{/privacy}","received_events_url":"https://api.github.com/users/o-lim/received_events","type":"User","site_admin":false},"body":"This fixes short-key notation for optional arguments when they are of the form `-sk VALUE`, such that\r\n```lua\r\ncli:add_opt(\"-sk VALUE\", \"short-key description\")\r\n```\r\nwill not generate an error.\r\n\r\nWithout this fix the following error would be generated:\r\n```\r\n$ app.lua -sk value\r\nerror: unknown/bad flag; -sk; re-run with --help for usage\r\n```\r\n","created_at":"2015-01-30T06:10:09Z","updated_at":"2015-01-30T06:10:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/amireh/lua_cliargs/pulls/27/commits","review_comments_url":"https://api.github.com/repos/amireh/lua_cliargs/pulls/27/comments","review_comment_url":"https://api.github.com/repos/amireh/lua_cliargs/pulls/comments/{number}","comments_url":"https://api.github.com/repos/amireh/lua_cliargs/issues/27/comments","statuses_url":"https://api.github.com/repos/amireh/lua_cliargs/statuses/35ed6188f85de60febda4f2d36a7026d6d12a571","head":{"label":"o-lim:short-key-fix","ref":"short-key-fix","sha":"35ed6188f85de60febda4f2d36a7026d6d12a571","user":{"login":"o-lim","id":10095424,"avatar_url":"https://avatars.githubusercontent.com/u/10095424?v=3","gravatar_id":"","url":"https://api.github.com/users/o-lim","html_url":"https://github.com/o-lim","followers_url":"https://api.github.com/users/o-lim/followers","following_url":"https://api.github.com/users/o-lim/following{/other_user}","gists_url":"https://api.github.com/users/o-lim/gists{/gist_id}","starred_url":"https://api.github.com/users/o-lim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/o-lim/subscriptions","organizations_url":"https://api.github.com/users/o-lim/orgs","repos_url":"https://api.github.com/users/o-lim/repos","events_url":"https://api.github.com/users/o-lim/events{/privacy}","received_events_url":"https://api.github.com/users/o-lim/received_events","type":"User","site_admin":false},"repo":{"id":28583537,"name":"lua_cliargs","full_name":"o-lim/lua_cliargs","owner":{"login":"o-lim","id":10095424,"avatar_url":"https://avatars.githubusercontent.com/u/10095424?v=3","gravatar_id":"","url":"https://api.github.com/users/o-lim","html_url":"https://github.com/o-lim","followers_url":"https://api.github.com/users/o-lim/followers","following_url":"https://api.github.com/users/o-lim/following{/other_user}","gists_url":"https://api.github.com/users/o-lim/gists{/gist_id}","starred_url":"https://api.github.com/users/o-lim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/o-lim/subscriptions","organizations_url":"https://api.github.com/users/o-lim/orgs","repos_url":"https://api.github.com/users/o-lim/repos","events_url":"https://api.github.com/users/o-lim/events{/privacy}","received_events_url":"https://api.github.com/users/o-lim/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/o-lim/lua_cliargs","description":"A command-line argument parsing module for Lua.","fork":true,"url":"https://api.github.com/repos/o-lim/lua_cliargs","forks_url":"https://api.github.com/repos/o-lim/lua_cliargs/forks","keys_url":"https://api.github.com/repos/o-lim/lua_cliargs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/o-lim/lua_cliargs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/o-lim/lua_cliargs/teams","hooks_url":"https://api.github.com/repos/o-lim/lua_cliargs/hooks","issue_events_url":"https://api.github.com/repos/o-lim/lua_cliargs/issues/events{/number}","events_url":"https://api.github.com/repos/o-lim/lua_cliargs/events","assignees_url":"https://api.github.com/repos/o-lim/lua_cliargs/assignees{/user}","branches_url":"https://api.github.com/repos/o-lim/lua_cliargs/branches{/branch}","tags_url":"https://api.github.com/repos/o-lim/lua_cliargs/tags","blobs_url":"https://api.github.com/repos/o-lim/lua_cliargs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/o-lim/lua_cliargs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/o-lim/lua_cliargs/git/refs{/sha}","trees_url":"https://api.github.com/repos/o-lim/lua_cliargs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/o-lim/lua_cliargs/statuses/{sha}","languages_url":"https://api.github.com/repos/o-lim/lua_cliargs/languages","stargazers_url":"https://api.github.com/repos/o-lim/lua_cliargs/stargazers","contributors_url":"https://api.github.com/repos/o-lim/lua_cliargs/contributors","subscribers_url":"https://api.github.com/repos/o-lim/lua_cliargs/subscribers","subscription_url":"https://api.github.com/repos/o-lim/lua_cliargs/subscription","commits_url":"https://api.github.com/repos/o-lim/lua_cliargs/commits{/sha}","git_commits_url":"https://api.github.com/repos/o-lim/lua_cliargs/git/commits{/sha}","comments_url":"https://api.github.com/repos/o-lim/lua_cliargs/comments{/number}","issue_comment_url":"https://api.github.com/repos/o-lim/lua_cliargs/issues/comments/{number}","contents_url":"https://api.github.com/repos/o-lim/lua_cliargs/contents/{+path}","compare_url":"https://api.github.com/repos/o-lim/lua_cliargs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/o-lim/lua_cliargs/merges","archive_url":"https://api.github.com/repos/o-lim/lua_cliargs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/o-lim/lua_cliargs/downloads","issues_url":"https://api.github.com/repos/o-lim/lua_cliargs/issues{/number}","pulls_url":"https://api.github.com/repos/o-lim/lua_cliargs/pulls{/number}","milestones_url":"https://api.github.com/repos/o-lim/lua_cliargs/milestones{/number}","notifications_url":"https://api.github.com/repos/o-lim/lua_cliargs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/o-lim/lua_cliargs/labels{/name}","releases_url":"https://api.github.com/repos/o-lim/lua_cliargs/releases{/id}","created_at":"2014-12-29T07:01:40Z","updated_at":"2015-01-30T05:51:39Z","pushed_at":"2015-01-30T05:52:39Z","git_url":"git://github.com/o-lim/lua_cliargs.git","ssh_url":"git@github.com:o-lim/lua_cliargs.git","clone_url":"https://github.com/o-lim/lua_cliargs.git","svn_url":"https://github.com/o-lim/lua_cliargs","homepage":null,"size":357,"stargazers_count":0,"watchers_count":0,"language":"Lua","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"amireh:master","ref":"master","sha":"7871e424029fbd5159e970cc47ccedd7f31c7459","user":{"login":"amireh","id":153786,"avatar_url":"https://avatars.githubusercontent.com/u/153786?v=3","gravatar_id":"","url":"https://api.github.com/users/amireh","html_url":"https://github.com/amireh","followers_url":"https://api.github.com/users/amireh/followers","following_url":"https://api.github.com/users/amireh/following{/other_user}","gists_url":"https://api.github.com/users/amireh/gists{/gist_id}","starred_url":"https://api.github.com/users/amireh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amireh/subscriptions","organizations_url":"https://api.github.com/users/amireh/orgs","repos_url":"https://api.github.com/users/amireh/repos","events_url":"https://api.github.com/users/amireh/events{/privacy}","received_events_url":"https://api.github.com/users/amireh/received_events","type":"User","site_admin":false},"repo":{"id":4819811,"name":"lua_cliargs","full_name":"amireh/lua_cliargs","owner":{"login":"amireh","id":153786,"avatar_url":"https://avatars.githubusercontent.com/u/153786?v=3","gravatar_id":"","url":"https://api.github.com/users/amireh","html_url":"https://github.com/amireh","followers_url":"https://api.github.com/users/amireh/followers","following_url":"https://api.github.com/users/amireh/following{/other_user}","gists_url":"https://api.github.com/users/amireh/gists{/gist_id}","starred_url":"https://api.github.com/users/amireh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amireh/subscriptions","organizations_url":"https://api.github.com/users/amireh/orgs","repos_url":"https://api.github.com/users/amireh/repos","events_url":"https://api.github.com/users/amireh/events{/privacy}","received_events_url":"https://api.github.com/users/amireh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/amireh/lua_cliargs","description":"A command-line argument parsing module for Lua.","fork":false,"url":"https://api.github.com/repos/amireh/lua_cliargs","forks_url":"https://api.github.com/repos/amireh/lua_cliargs/forks","keys_url":"https://api.github.com/repos/amireh/lua_cliargs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amireh/lua_cliargs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amireh/lua_cliargs/teams","hooks_url":"https://api.github.com/repos/amireh/lua_cliargs/hooks","issue_events_url":"https://api.github.com/repos/amireh/lua_cliargs/issues/events{/number}","events_url":"https://api.github.com/repos/amireh/lua_cliargs/events","assignees_url":"https://api.github.com/repos/amireh/lua_cliargs/assignees{/user}","branches_url":"https://api.github.com/repos/amireh/lua_cliargs/branches{/branch}","tags_url":"https://api.github.com/repos/amireh/lua_cliargs/tags","blobs_url":"https://api.github.com/repos/amireh/lua_cliargs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amireh/lua_cliargs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amireh/lua_cliargs/git/refs{/sha}","trees_url":"https://api.github.com/repos/amireh/lua_cliargs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amireh/lua_cliargs/statuses/{sha}","languages_url":"https://api.github.com/repos/amireh/lua_cliargs/languages","stargazers_url":"https://api.github.com/repos/amireh/lua_cliargs/stargazers","contributors_url":"https://api.github.com/repos/amireh/lua_cliargs/contributors","subscribers_url":"https://api.github.com/repos/amireh/lua_cliargs/subscribers","subscription_url":"https://api.github.com/repos/amireh/lua_cliargs/subscription","commits_url":"https://api.github.com/repos/amireh/lua_cliargs/commits{/sha}","git_commits_url":"https://api.github.com/repos/amireh/lua_cliargs/git/commits{/sha}","comments_url":"https://api.github.com/repos/amireh/lua_cliargs/comments{/number}","issue_comment_url":"https://api.github.com/repos/amireh/lua_cliargs/issues/comments/{number}","contents_url":"https://api.github.com/repos/amireh/lua_cliargs/contents/{+path}","compare_url":"https://api.github.com/repos/amireh/lua_cliargs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amireh/lua_cliargs/merges","archive_url":"https://api.github.com/repos/amireh/lua_cliargs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amireh/lua_cliargs/downloads","issues_url":"https://api.github.com/repos/amireh/lua_cliargs/issues{/number}","pulls_url":"https://api.github.com/repos/amireh/lua_cliargs/pulls{/number}","milestones_url":"https://api.github.com/repos/amireh/lua_cliargs/milestones{/number}","notifications_url":"https://api.github.com/repos/amireh/lua_cliargs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amireh/lua_cliargs/labels{/name}","releases_url":"https://api.github.com/repos/amireh/lua_cliargs/releases{/id}","created_at":"2012-06-28T11:34:36Z","updated_at":"2015-01-23T08:58:38Z","pushed_at":"2014-12-30T15:27:33Z","git_url":"git://github.com/amireh/lua_cliargs.git","ssh_url":"git@github.com:amireh/lua_cliargs.git","clone_url":"https://github.com/amireh/lua_cliargs.git","svn_url":"https://github.com/amireh/lua_cliargs","homepage":null,"size":470,"stargazers_count":20,"watchers_count":20,"language":"Lua","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":2,"forks":8,"open_issues":2,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/amireh/lua_cliargs/pulls/27"},"html":{"href":"https://github.com/amireh/lua_cliargs/pull/27"},"issue":{"href":"https://api.github.com/repos/amireh/lua_cliargs/issues/27"},"comments":{"href":"https://api.github.com/repos/amireh/lua_cliargs/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/amireh/lua_cliargs/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/amireh/lua_cliargs/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/amireh/lua_cliargs/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/amireh/lua_cliargs/statuses/35ed6188f85de60febda4f2d36a7026d6d12a571"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":12,"deletions":4,"changed_files":2}}