fix(@angular/cli): only print options once for schematic --help

This commit is contained in:
Hans 2018-09-04 16:32:55 -07:00 committed by Alex Eagle
parent c8ddfbbe62
commit 37d1a43d71

View File

@ -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:');