fix(cli): handle version flags before workspace discovery
This commit is contained in:
1 parent
1a8c75a958
commit
7a36c1905f
4 files changed
+31
-4
No files matched your search
@@ -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