Skip to content

Commit

Permalink
fix: add missing -h (help) and -v (version) aliases (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous committed Oct 10, 2017
1 parent 0c4f019 commit 74a70be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,7 @@ module.exports = function cli() {
.usage('ybiq <command>')
.command('init', init.desc, {}, init)
.demandCommand(1)
.alias('help', 'h')
.alias('version', 'v')
.argv
}
4 changes: 2 additions & 2 deletions test/help.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ Commands:
- Create 'commitlint.config.js'
Options:
--help Show help [boolean]
--version Show version number [boolean]
--help, -h Show help [boolean]
--version, -v Show version number [boolean]
`.trim()

suite('help', () => {
Expand Down

0 comments on commit 74a70be

Please sign in to comment.