{"action":"created","issue":{"url":"https://api.github.com/repos/igorshubovych/markdownlint-cli/issues/2","labels_url":"https://api.github.com/repos/igorshubovych/markdownlint-cli/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/igorshubovych/markdownlint-cli/issues/2/comments","events_url":"https://api.github.com/repos/igorshubovych/markdownlint-cli/issues/2/events","html_url":"https://github.com/igorshubovych/markdownlint-cli/issues/2","id":127608379,"number":2,"title":"Help text on Windows refers to the tool name as \"cli\" although it's installed as \"markdownlint\"","user":{"login":"DavidAnson","id":1828270,"avatar_url":"https://avatars.githubusercontent.com/u/1828270?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidAnson","html_url":"https://github.com/DavidAnson","followers_url":"https://api.github.com/users/DavidAnson/followers","following_url":"https://api.github.com/users/DavidAnson/following{/other_user}","gists_url":"https://api.github.com/users/DavidAnson/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidAnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidAnson/subscriptions","organizations_url":"https://api.github.com/users/DavidAnson/orgs","repos_url":"https://api.github.com/users/DavidAnson/repos","events_url":"https://api.github.com/users/DavidAnson/events{/privacy}","received_events_url":"https://api.github.com/users/DavidAnson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-20T05:35:58Z","updated_at":"2016-01-21T06:04:48Z","closed_at":null,"body":"This is a minor issue, but potentially confusing for novices. I'd suggest that \"Usage:\" should say \"markdownlint\" instead of \"cli\":\r\n\r\n```\r\nD:\\T>markdownlint --help\r\n\r\n  Usage: cli [options] <files>\r\n\r\n  MarkdownLint Command Line Interface\r\n\r\n  Options:\r\n\r\n    -h, --help                 output usage information\r\n    -V, --version              output the version number\r\n    -c, --config [configFile]  Configuration file\r\n```\r\n\r\nAs an *extremely* minor point, the 'O's of \"Output\" might be capitalized and the 'V' of \"-V\" lower-cased for consistency with the other switches."},"comment":{"url":"https://api.github.com/repos/igorshubovych/markdownlint-cli/issues/comments/173466548","html_url":"https://github.com/igorshubovych/markdownlint-cli/issues/2#issuecomment-173466548","issue_url":"https://api.github.com/repos/igorshubovych/markdownlint-cli/issues/2","id":173466548,"user":{"login":"DavidAnson","id":1828270,"avatar_url":"https://avatars.githubusercontent.com/u/1828270?v=3","gravatar_id":"","url":"https://api.github.com/users/DavidAnson","html_url":"https://github.com/DavidAnson","followers_url":"https://api.github.com/users/DavidAnson/followers","following_url":"https://api.github.com/users/DavidAnson/following{/other_user}","gists_url":"https://api.github.com/users/DavidAnson/gists{/gist_id}","starred_url":"https://api.github.com/users/DavidAnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DavidAnson/subscriptions","organizations_url":"https://api.github.com/users/DavidAnson/orgs","repos_url":"https://api.github.com/users/DavidAnson/repos","events_url":"https://api.github.com/users/DavidAnson/events{/privacy}","received_events_url":"https://api.github.com/users/DavidAnson/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T06:04:48Z","updated_at":"2016-01-21T06:04:48Z","body":"Commander attempts to infer the tool name if it is not passed in - see `Command.prototype.parse`.\r\n\r\nOn Windows (including when installed globally), argv at that point looks like:\r\n\r\n```\r\n[ 'C:\\\\Program Files\\\\nodejs\\\\node.exe',\r\n  'd:\\\\T\\\\markdownlint-cli\\\\cli.js' ]\r\n```\r\n\r\nTherefore, commander infers the name \"cli\".\r\n\r\nOne fix might be to rename `cli.js` to `markdown.js`. Another might be something like the following:\r\n\r\n```js\r\nvar pkg = require('./package');\r\nvar commander = require('commander');\r\nvar program = new commander.Command(pkg.name.replace(/-.*$/, ''));\r\n```\r\n\r\nIf you like, I can send a pull request - or feel free to make the change yourself if you like it."}}