diff --git a/cli/parse_args.ts b/cli/parse_args.ts index 6d200120a48c..47569bb82af5 100644 --- a/cli/parse_args.ts +++ b/cli/parse_args.ts @@ -768,14 +768,9 @@ export function parseArgs< } if (doubleDash) { - argv["--"] = []; - for (const key of notFlags) { - argv["--"].push(key); - } + argv["--"] = notFlags; } else { - for (const key of notFlags) { - argv._.push(key); - } + argv._.push(...notFlags); } return argv as Args;