Add --version
This commit is contained in:
parent
10690e74e1
commit
4b42340c5f
|
@ -116,6 +116,10 @@ function main() {
|
||||||
|
|
||||||
process.exitCode = ExitCodes.SUCCESS;
|
process.exitCode = ExitCodes.SUCCESS;
|
||||||
|
|
||||||
|
if(true === argv.version) {
|
||||||
|
return console.info(require('./package.json').version);
|
||||||
|
}
|
||||||
|
|
||||||
if(0 === argv._.length ||
|
if(0 === argv._.length ||
|
||||||
'help' === argv._[0])
|
'help' === argv._[0])
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue