Rename argument

This commit is contained in:
Michael B. Gale
2026-10-21 19:34:35 +01:00
parent 596ae5c8cf
commit 34f75b50e7

View File

@@ -60,8 +60,8 @@ function hasCodeQLInToolcache(expectedNumber?: string) {
function main() {
const { positionals, values } = parseArgs({
options: {
// The *number* of expected versions in the toolcache.
expectedVersions: { type: "string", short: "n" },
// The number of expected versions in the toolcache.
"expected-version-count": { type: "string", short: "n" },
},
allowPositionals: true,
});
@@ -80,7 +80,7 @@ function main() {
noCodeQLInToolcache();
return;
case "installed":
hasCodeQLInToolcache(values.expectedVersions);
hasCodeQLInToolcache(values["expected-version-count"]);
return;
default:
throw new Error(`Unknown command '${cmd}'.`);