Skip to content

Commit

Permalink
Fix use of yargs conflicts() (#2391)
Browse files Browse the repository at this point in the history
#2389 (comment)

Co-authored-by: Arnau Casau <[email protected]>
  • Loading branch information
Eric-Arellano and arnaucasau authored Nov 26, 2024
1 parent b62d46d commit c77b259
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions scripts/js/commands/checkPagesRender.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ const PORT = 3000;
interface Arguments {
[x: string]: unknown;
fromFile?: string;
nonApi: boolean;
currentApis: boolean;
devApis: boolean;
historicalApis: boolean;
qiskitReleaseNotes: boolean;
translations: boolean;
nonApi?: boolean;
currentApis?: boolean;
devApis?: boolean;
historicalApis?: boolean;
qiskitReleaseNotes?: boolean;
translations?: boolean;
}

const readArgs = (): Arguments => {
Expand All @@ -53,34 +53,28 @@ const readArgs = (): Arguments => {
})
.option("non-api", {
type: "boolean",
default: false,
description: "Check all the non-API docs, like start/.",
})
.option("current-apis", {
type: "boolean",
default: false,
description: "Check the pages in the current API docs.",
})
.option("dev-apis", {
type: "boolean",
default: false,
description: "Check the /dev API docs.",
})
.option("historical-apis", {
type: "boolean",
default: false,
description:
"Check the pages in the historical API docs, e.g. `api/qiskit/0.44`. " +
"Warning: this is slow.",
})
.option("qiskit-release-notes", {
type: "boolean",
default: false,
description: "Check the pages in the `api/qiskit/release-notes` folder.",
})
.option("translations", {
type: "boolean",
default: false,
description: "Check the pages in the `translations/` subfolders.",
})
.parseSync();
Expand Down

0 comments on commit c77b259

Please sign in to comment.