We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3365cd7 commit 38caac7Copy full SHA for 38caac7
lib/config.ts
@@ -2,6 +2,7 @@ import { existsSync, readFileSync } from "fs";
2
import jju from "jju";
3
// eslint-disable-next-line unicorn/import-style
4
import * as path from "path";
5
+import { hideBin } from "yargs/helpers";
6
import yargs from "yargs/yargs";
7
import Allowlist, { type AllowlistRecord } from "./allowlist.js";
8
import {
@@ -293,7 +294,7 @@ export function mapAuditCiConfigToAuditCiFullConfig(
293
294
}
295
296
export async function runYargs(): Promise<AuditCiFullConfig> {
- const { argv } = yargs()
297
+ const { argv } = yargs(hideBin(process.argv))
298
.config("config", (configPath) =>
299
// Supports JSON, JSONC, & JSON5
300
jju.parse(readFileSync(configPath, "utf8"), {
0 commit comments