mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-19 20:52:06 +08:00
fix(@angular/cli): only print options once for schematic --help
This commit is contained in:
parent
c8ddfbbe62
commit
37d1a43d71
@ -100,11 +100,10 @@ export abstract class SchematicCommand<
|
|||||||
|
|
||||||
public async printHelp(options: T) {
|
public async printHelp(options: T) {
|
||||||
await super.printHelp(options);
|
await super.printHelp(options);
|
||||||
const schematicNames = Object.keys(this.description.suboptions || {});
|
|
||||||
|
|
||||||
await super.printHelpOptions();
|
|
||||||
this.logger.info('');
|
this.logger.info('');
|
||||||
|
|
||||||
|
const schematicNames = Object.keys(this.description.suboptions || {});
|
||||||
|
|
||||||
if (this.description.suboptions) {
|
if (this.description.suboptions) {
|
||||||
if (schematicNames.length > 1) {
|
if (schematicNames.length > 1) {
|
||||||
this.logger.info('Available Schematics:');
|
this.logger.info('Available Schematics:');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user