feat(@angular/cli): generate --helpJson will remove collection name

For the default collection.
This commit is contained in:
Hans 2018-09-13 16:06:19 -07:00
parent 3b5dbad5c8
commit 06d332ba23

View File

@ -37,8 +37,12 @@ export class GenerateCommand extends SchematicCommand<GenerateCommandSchema> {
);
}
if (this.getDefaultSchematicCollection() == collectionName) {
this.description.suboptions[name] = options;
} else {
this.description.suboptions[`${collectionName}:${name}`] = options;
}
}
this.description.options.forEach(option => {
if (option.name == 'schematic') {