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