Skip to content

Commit

Permalink
fix(@angular/cli): allow usage of hidden command options
Browse files Browse the repository at this point in the history
  • Loading branch information
clydin authored and Brocco committed Feb 9, 2018
1 parent f3720a7 commit 29d457d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/@angular/cli/tasks/schematic-get-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export default Task.extend({
const keys = Object.keys(properties);
const availableOptions = keys
.map(key => ({...properties[key], ...{name: stringUtils.dasherize(key)}}))
.filter(opt => opt.visible !== false)
.map(opt => {
let type;
const schematicType = opt.type;
Expand Down Expand Up @@ -70,7 +69,8 @@ export default Task.extend({
type,
schematicType,
default: undefined, // do not carry over schematics defaults
schematicDefault
schematicDefault,
hidden: opt.visible === false,
};
})
.filter(x => x);
Expand Down

0 comments on commit 29d457d

Please sign in to comment.