fix version return

This commit is contained in:
Philipp Kunz 2016-06-10 04:32:11 +02:00
parent d65061aaaa
commit 5ee866d9c6
2 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -47,7 +47,7 @@ export class Smartcli {
let done = plugins.q.defer(); let done = plugins.q.defer();
this.parseStarted.promise this.parseStarted.promise
.then(() => { .then(() => {
if(this.argv._.length == 0 || !this.argv.v){ if(this.argv._.length == 0 && !this.argv.v){
done.resolve(); done.resolve();
} else { } else {
done.reject(); done.reject();