{"action":"created","issue":{"url":"https://api.github.com/repos/Yubico/u2fval/issues/10","labels_url":"https://api.github.com/repos/Yubico/u2fval/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/Yubico/u2fval/issues/10/comments","events_url":"https://api.github.com/repos/Yubico/u2fval/issues/10/events","html_url":"https://github.com/Yubico/u2fval/issues/10","id":110002584,"number":10,"title":"u2fv client create -h","user":{"login":"patatetom","id":14196171,"avatar_url":"https://avatars.githubusercontent.com/u/14196171?v=3","gravatar_id":"","url":"https://api.github.com/users/patatetom","html_url":"https://github.com/patatetom","followers_url":"https://api.github.com/users/patatetom/followers","following_url":"https://api.github.com/users/patatetom/following{/other_user}","gists_url":"https://api.github.com/users/patatetom/gists{/gist_id}","starred_url":"https://api.github.com/users/patatetom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patatetom/subscriptions","organizations_url":"https://api.github.com/users/patatetom/orgs","repos_url":"https://api.github.com/users/patatetom/repos","events_url":"https://api.github.com/users/patatetom/events{/privacy}","received_events_url":"https://api.github.com/users/patatetom/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-06T12:59:53Z","updated_at":"2015-10-07T07:28:45Z","closed_at":null,"body":"the command line help for client create returns :\r\n```\r\n$ u2fval client create -h\r\nusage: u2fval client create [-h] -a APPID -f FACET [FACET ...] <name>\r\n\r\npositional arguments:\r\n  <name>                the name of the client\r\n\r\noptional arguments:\r\n  -h, --help            show this help message and exit\r\n  -a APPID, --appId APPID\r\n                        sets the appId\r\n  -f FACET [FACET ...], --facets FACET [FACET ...]\r\n                        all valid facets for the client\r\n```\r\nwith client name as last argument.\r\nwhen used in this way, u2fval returns an error :\r\n```\r\n$ u2fval client create -a https://localhost -f https://localhost mywebapp\r\nusage: u2fval client create [-h] -a APPID -f FACET [FACET ...] <name>\r\nu2fval client create: error: too few arguments\r\n```\r\nthis error doesn't occur when client name is the first argument :\r\n```\r\n$ u2fval client create mywebapp -a https://localhost -f https://localhost\r\nCreated client: mywebapp\r\n```"},"comment":{"url":"https://api.github.com/repos/Yubico/u2fval/issues/comments/146100661","html_url":"https://github.com/Yubico/u2fval/issues/10#issuecomment-146100661","issue_url":"https://api.github.com/repos/Yubico/u2fval/issues/10","id":146100661,"user":{"login":"dainnilsson","id":140781,"avatar_url":"https://avatars.githubusercontent.com/u/140781?v=3","gravatar_id":"","url":"https://api.github.com/users/dainnilsson","html_url":"https://github.com/dainnilsson","followers_url":"https://api.github.com/users/dainnilsson/followers","following_url":"https://api.github.com/users/dainnilsson/following{/other_user}","gists_url":"https://api.github.com/users/dainnilsson/gists{/gist_id}","starred_url":"https://api.github.com/users/dainnilsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dainnilsson/subscriptions","organizations_url":"https://api.github.com/users/dainnilsson/orgs","repos_url":"https://api.github.com/users/dainnilsson/repos","events_url":"https://api.github.com/users/dainnilsson/events{/privacy}","received_events_url":"https://api.github.com/users/dainnilsson/received_events","type":"User","site_admin":false},"created_at":"2015-10-07T07:28:45Z","updated_at":"2015-10-07T07:28:45Z","body":"I'm committed a workaround in 0bd7a1f. It's not perfect, but it seems to do the job. Basically I made *name* optional, with a custom action that takes the last value of *--facets* if more than one are given. The downside is that the *--help* output shows *name* as optional, by placing square brackets around it."}}