Fallback to undefined rather than false when resolving CLI flags (#4362)
This commit is contained in:
parent
1de82f0f78
commit
aa5118e854
2 changed files with 6 additions and 1 deletions
5
.changeset/few-mayflies-invent.md
Normal file
5
.changeset/few-mayflies-invent.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
"astro": patch
|
||||
---
|
||||
|
||||
Allow user config to set `markdown.drafts` option
|
|
@ -363,7 +363,7 @@ function resolveFlags(flags: Partial<Flags>): CLIFlags {
|
|||
config: typeof flags.config === 'string' ? flags.config : undefined,
|
||||
host:
|
||||
typeof flags.host === 'string' || typeof flags.host === 'boolean' ? flags.host : undefined,
|
||||
drafts: typeof flags.drafts === 'boolean' ? flags.drafts : false,
|
||||
drafts: typeof flags.drafts === 'boolean' ? flags.drafts : undefined,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue