fix version set for cli and slash commands (#892)

This commit is contained in:
Zach Sais
2025-06-11 08:25:26 -05:00
committed by GitHub
parent 3f5ac384cc
commit 5bab5a7378
4 changed files with 11 additions and 3 deletions

View File

@@ -91,7 +91,7 @@ async function parseArguments(): Promise<CliArgs> {
type: 'boolean',
description: 'Enable telemetry?',
})
.version() // This will enable the --version flag based on package.json
.version(process.env.CLI_VERSION || '0.0.0') // This will enable the --version flag based on package.json
.help()
.alias('h', 'help')
.strict().argv;