Skip to content

Commit

Permalink
chore: truncate at 3
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Jun 20, 2021
1 parent f6074d1 commit bc4818d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/yargs-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bc4818d

Please sign in to comment.