Skip to content

Commit

Permalink
Merge pull request #2175 from sezanzeb/patch-1
Browse files Browse the repository at this point in the history
fix getRemainingFlags for arguments with multiple '--' in them
  • Loading branch information
kamilmysliwiec committed Jul 17, 2023
2 parents 27faa64 + 72f94f1 commit 36a7111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils/remaining-flags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export function getRemainingFlags(cli: CommanderStatic) {
const prevKeyRaw = array[index - 1];
if (prevKeyRaw) {
const previousKey = camelCase(
prevKeyRaw.replace('--', '').replace('no', ''),
prevKeyRaw.replace(/--/g, '').replace('no', ''),
);
if (cli[previousKey] === item) {
return false;
Expand Down

0 comments on commit 36a7111

Please sign in to comment.