Skip to content

Commit d8ed389

Browse files
clydinBrocco
authored andcommitted
fix(@angular/cli): allow usage of hidden command options
1 parent 84b5965 commit d8ed389

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: packages/@angular/cli/tasks/schematic-get-options.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ export default Task.extend({
3434
const keys = Object.keys(properties);
3535
const availableOptions = keys
3636
.map(key => ({...properties[key], ...{name: stringUtils.dasherize(key)}}))
37-
.filter(opt => opt.visible !== false)
3837
.map(opt => {
3938
let type;
4039
const schematicType = opt.type;
@@ -70,7 +69,8 @@ export default Task.extend({
7069
type,
7170
schematicType,
7271
default: undefined, // do not carry over schematics defaults
73-
schematicDefault
72+
schematicDefault,
73+
hidden: opt.visible === false,
7474
};
7575
})
7676
.filter(x => x);

0 commit comments

Comments
 (0)