Skip to content

Commit 38caac7

Browse files
committed
fix: add hideBin(process.argv) fixes #334
1 parent 3365cd7 commit 38caac7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/config.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { existsSync, readFileSync } from "fs";
22
import jju from "jju";
33
// eslint-disable-next-line unicorn/import-style
44
import * as path from "path";
5+
import { hideBin } from "yargs/helpers";
56
import yargs from "yargs/yargs";
67
import Allowlist, { type AllowlistRecord } from "./allowlist.js";
78
import {
@@ -293,7 +294,7 @@ export function mapAuditCiConfigToAuditCiFullConfig(
293294
}
294295

295296
export async function runYargs(): Promise<AuditCiFullConfig> {
296-
const { argv } = yargs()
297+
const { argv } = yargs(hideBin(process.argv))
297298
.config("config", (configPath) =>
298299
// Supports JSON, JSONC, & JSON5
299300
jju.parse(readFileSync(configPath, "utf8"), {

0 commit comments

Comments
 (0)