fix(cli): handle version flags before workspace discovery
This commit is contained in:
@@ -113,6 +113,11 @@ Update options: --dry-run previews changes; --no-verify skips post-update check/
|
||||
async function main(): Promise<void> {
|
||||
const [command, ...rest] = process.argv.slice(2);
|
||||
|
||||
if (command === "--version" || command === "-v" || command === "version") {
|
||||
console.log(currentCliVersion());
|
||||
return;
|
||||
}
|
||||
|
||||
notifyIfUpdateAvailable(currentCliVersion(), command);
|
||||
|
||||
switch (command) {
|
||||
|
||||
Reference in New Issue
Block a user