We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd7d544 commit 427119cCopy full SHA for 427119c
packages/core/src/scripts/cli.ts
@@ -18,7 +18,9 @@ export type Flags = {
18
19
function defaultFlags(flags: Partial<Flags>, defaults: Partial<Flags>) {
20
for (const [key, value] of Object.entries(flags)) {
21
- if (!(key in defaults)) throw new Error(`Option '${key}' is unsupported for this command`);
+ if (value !== undefined && !(key in defaults)) {
22
+ throw new Error(`Option '${key}' is unsupported for this command`);
23
+ }
24
25
// should we default the flag?
26
if (value === undefined) {
0 commit comments