{"action":"created","issue":{"url":"https://api.github.com/repos/bcoe/yargs/issues/256","labels_url":"https://api.github.com/repos/bcoe/yargs/issues/256/labels{/name}","comments_url":"https://api.github.com/repos/bcoe/yargs/issues/256/comments","events_url":"https://api.github.com/repos/bcoe/yargs/issues/256/events","html_url":"https://github.com/bcoe/yargs/issues/256","id":106305708,"number":256,"title":".count misbehaves with hyphenated flags","user":{"login":"kahlil","id":104712,"avatar_url":"https://avatars.githubusercontent.com/u/104712?v=3","gravatar_id":"","url":"https://api.github.com/users/kahlil","html_url":"https://github.com/kahlil","followers_url":"https://api.github.com/users/kahlil/followers","following_url":"https://api.github.com/users/kahlil/following{/other_user}","gists_url":"https://api.github.com/users/kahlil/gists{/gist_id}","starred_url":"https://api.github.com/users/kahlil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kahlil/subscriptions","organizations_url":"https://api.github.com/users/kahlil/orgs","repos_url":"https://api.github.com/users/kahlil/repos","events_url":"https://api.github.com/users/kahlil/events{/privacy}","received_events_url":"https://api.github.com/users/kahlil/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bcoe/yargs/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-09-14T09:37:41Z","updated_at":"2015-11-30T17:26:17Z","closed_at":"2015-09-15T09:47:22Z","body":"If I do something like this: \r\n```js\r\nvar opts = require('yargs')\r\n    .count('log-level')\r\n    .alias('l', 'log-level')\r\n    .argv;\r\n\r\nconsole.log(opts);\r\n```\r\nAnd pass `-lll` yargs will always count 2 no matter what. If I use `loglevel` as the main name of the flag it counts them correctly."},"comment":{"url":"https://api.github.com/repos/bcoe/yargs/issues/comments/160696225","html_url":"https://github.com/bcoe/yargs/issues/256#issuecomment-160696225","issue_url":"https://api.github.com/repos/bcoe/yargs/issues/256","id":160696225,"user":{"login":"hildjj","id":93963,"avatar_url":"https://avatars.githubusercontent.com/u/93963?v=3","gravatar_id":"","url":"https://api.github.com/users/hildjj","html_url":"https://github.com/hildjj","followers_url":"https://api.github.com/users/hildjj/followers","following_url":"https://api.github.com/users/hildjj/following{/other_user}","gists_url":"https://api.github.com/users/hildjj/gists{/gist_id}","starred_url":"https://api.github.com/users/hildjj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hildjj/subscriptions","organizations_url":"https://api.github.com/users/hildjj/orgs","repos_url":"https://api.github.com/users/hildjj/repos","events_url":"https://api.github.com/users/hildjj/events{/privacy}","received_events_url":"https://api.github.com/users/hildjj/received_events","type":"User","site_admin":false},"created_at":"2015-11-30T17:26:16Z","updated_at":"2015-11-30T17:26:16Z","body":"Actually, it's the `boolean: true` that's causing the issue, not .options."}}