feat: add version option (#66)

Closes #65
This commit is contained in:
Gant Laborde 2017-11-09 09:33:29 -06:00 committed by Mehdi Achour
parent 9f875e9aa8
commit 9f72f9aabc

2
cli.js
View file

@ -18,6 +18,8 @@ var defaultRCFile = path.join(cwd, '.all-contributorsrc');
var argv = yargs
.help('help')
.alias('h', 'help')
.alias('v', 'version')
.version()
.command('generate', 'Generate the list of contributors')
.usage('Usage: $0 generate')
.command('add', 'add a new contributor')