Skip to content

Commit

Permalink
fix(@angular/cli): only print options once for schematic --help
Browse files Browse the repository at this point in the history
  • Loading branch information
hansl authored and alexeagle committed Sep 6, 2018
1 parent c8ddfbb commit 37d1a43
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/angular/cli/models/schematic-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,10 @@ export abstract class SchematicCommand<

public async printHelp(options: T) {
await super.printHelp(options);
const schematicNames = Object.keys(this.description.suboptions || {});

await super.printHelpOptions();
this.logger.info('');

const schematicNames = Object.keys(this.description.suboptions || {});

if (this.description.suboptions) {
if (schematicNames.length > 1) {
this.logger.info('Available Schematics:');
Expand Down

0 comments on commit 37d1a43

Please sign in to comment.