mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-16 10:33:43 +08:00
feat(@angular/cli): generate --helpJson will remove collection name
For the default collection.
This commit is contained in:
parent
3b5dbad5c8
commit
06d332ba23
@ -37,7 +37,11 @@ export class GenerateCommand extends SchematicCommand<GenerateCommandSchema> {
|
||||
);
|
||||
}
|
||||
|
||||
this.description.suboptions[`${collectionName}:${name}`] = options;
|
||||
if (this.getDefaultSchematicCollection() == collectionName) {
|
||||
this.description.suboptions[name] = options;
|
||||
} else {
|
||||
this.description.suboptions[`${collectionName}:${name}`] = options;
|
||||
}
|
||||
}
|
||||
|
||||
this.description.options.forEach(option => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user