Skip to content

Commit 37d1a43

Browse files
hanslalexeagle
authored andcommittedSep 6, 2018
fix(@angular/cli): only print options once for schematic --help
1 parent c8ddfbb commit 37d1a43

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
 

‎packages/angular/cli/models/schematic-command.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,10 @@ export abstract class SchematicCommand<
100100

101101
public async printHelp(options: T) {
102102
await super.printHelp(options);
103-
const schematicNames = Object.keys(this.description.suboptions || {});
104-
105-
await super.printHelpOptions();
106103
this.logger.info('');
107104

105+
const schematicNames = Object.keys(this.description.suboptions || {});
106+
108107
if (this.description.suboptions) {
109108
if (schematicNames.length > 1) {
110109
this.logger.info('Available Schematics:');

0 commit comments

Comments
 (0)