From bc4818de00a886be0e52f2086e9eaeeb2aa66c91 Mon Sep 17 00:00:00 2001 From: bcoe Date: Sun, 20 Jun 2021 09:59:53 -0700 Subject: [PATCH] chore: truncate at 3 --- lib/yargs-parser.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/yargs-parser.ts b/lib/yargs-parser.ts index 80cc3cbf..84ab046e 100644 --- a/lib/yargs-parser.ts +++ b/lib/yargs-parser.ts @@ -970,7 +970,7 @@ export class YargsParser { } function isUnknownOption (arg: string): boolean { - arg = arg.replace(/^-{2,}/, '--') + arg = arg.replace(/^-{3,}/, '--') // ignore negative numbers if (arg.match(negative)) { return false } // if this is a short option group and all of them are configured, it isn't unknown