Skip to content

Commit 7d17b7c

Browse files
james-elicxvicb
andauthored
Update packages/cloudflare/src/cli/args.ts
Co-authored-by: Victor Berchet <[email protected]>
1 parent efda97e commit 7d17b7c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/cloudflare/src/cli/args.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ export function getPassthroughArgs<T extends ParseArgsConfig>(args: string[], {
9393
return passthroughArgs;
9494
}
9595

96-
const [, name] = /^--?(\w[\w-_]*)(=.+)?$/.exec(args[i]!) ?? [];
96+
// look for `--arg(=value)`, `-arg(=value)`
97+
const [, name] = /^--?(\w[\w-]*)(=.+)?$/.exec(args[i]!) ?? [];
9798
if (name && !(name in options)) {
9899
passthroughArgs.push(args[i]!);
99100

0 commit comments

Comments
 (0)