Skip to content

Commit 88f871f

Browse files
committed
fixup! fix(@angular-devkit/schematics-cli): correctly parse inline boolean values in CLI options
1 parent c724c1d commit 88f871f

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

‎packages/angular_devkit/schematics_cli/bin/schematics.ts‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -569,12 +569,10 @@ function parseOptions(args: string[]): Options {
569569
}
570570

571571
for (const [key, value] of Object.entries(values)) {
572-
if (typeof value === 'string') {
573-
if (value === 'true') {
574-
values[key] = true;
575-
} else if (value === 'false') {
576-
values[key] = false;
577-
}
572+
if (value === 'true') {
573+
values[key] = true;
574+
} else if (value === 'false') {
575+
values[key] = false;
578576
}
579577
}
580578

0 commit comments

Comments
 (0)