mirror of
https://github.com/zhigang1992/velociraptor.git
synced 2026-04-30 05:35:34 +08:00
fix(cli): version flag not working
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user