mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-03 19:27:12 +02:00
Add --version
This commit is contained in:
parent
10690e74e1
commit
4b42340c5f
1 changed files with 4 additions and 0 deletions
|
@ -116,6 +116,10 @@ function main() {
|
|||
|
||||
process.exitCode = ExitCodes.SUCCESS;
|
||||
|
||||
if(true === argv.version) {
|
||||
return console.info(require('./package.json').version);
|
||||
}
|
||||
|
||||
if(0 === argv._.length ||
|
||||
'help' === argv._[0])
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue