Skip to content

Commit 84e4e8d

Browse files
committedSep 15, 2018
fix(@angular/cli): run --help-json now returns a basic help
It was throwing an exception about some targets not being available.
1 parent c2f9e0b commit 84e4e8d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

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

+5
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ export abstract class ArchitectCommand<
9393
}
9494

9595
if ((!targetSpec.project || !targetSpec.target) && !this.multiTarget) {
96+
if (options.help || options.helpJson) {
97+
// This is a special case where we just return.
98+
return;
99+
}
100+
96101
throw new Error('Cannot determine project or target for Architect command.');
97102
}
98103

0 commit comments

Comments
 (0)