Skip to content

Commit

Permalink
feat(@angular/cli): generate --helpJson will remove collection name
Browse files Browse the repository at this point in the history
For the default collection.
  • Loading branch information
hansl committed Sep 15, 2018
1 parent 3b5dbad commit 06d332b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/angular/cli/commands/generate-impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit 06d332b

Please sign in to comment.