Skip to content

Commit

Permalink
fix(cli): version flag not working
Browse files Browse the repository at this point in the history
  • Loading branch information
umbopepato committed May 25, 2020
1 parent 6d20b4a commit 2698141
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cli/commands/vr.ts
Expand Up @@ -29,6 +29,10 @@ export class VrCommand extends Command {
.arguments("[script:scriptid] [additionalArgs...]")
.useRawArgs()
.action(async (options, script: string, ...additionalArgs: string[]) => {
if (["-v", "--version"].includes(script)) { // TODO find a way to avoid this
console.log(version);
return;
}
await runScript(this.configData, script, additionalArgs);
})
.command("run", new RunCommand(this.configData))
Expand Down

0 comments on commit 2698141

Please sign in to comment.