We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa7381e commit dbd81a7Copy full SHA for dbd81a7
1 file changed
packages/angular_devkit/schematics_cli/bin/schematics.ts
@@ -520,9 +520,16 @@ function parseOptions(args: string[]): Options {
520
}
521
522
523
- // Type inference for numbers
524
- if (typeof value === 'string' && !isNaN(Number(value))) {
525
- value = Number(value);
+ if (typeof value === 'string') {
+ if (!isNaN(Number(value))) {
+ // Type inference for numbers
526
+ value = Number(value);
527
+ } else if (value === 'true') {
528
+ // Type inference for booleans
529
+ value = true;
530
+ } else if (value === 'false') {
531
+ value = false;
532
+ }
533
534
535
const camelName = strings.camelize(name);
0 commit comments