We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ng doc
undefined
1 parent 7137c27 commit e113c44Copy full SHA for e113c44
packages/angular/cli/commands/doc-impl.ts
@@ -14,6 +14,11 @@ const opn = require('opn');
14
15
export class DocCommand extends Command<DocCommandSchema> {
16
public async run(options: DocCommandSchema & Arguments) {
17
+ if (!options.keyword) {
18
+ this.logger.error('You should specify a keyword, for instance, `ng doc ActivatedRoute`.');
19
+
20
+ return 0;
21
+ }
22
let searchUrl = `https://angular.io/api?query=${options.keyword}`;
23
if (options.search) {
24
searchUrl = `https://www.google.com/search?q=site%3Aangular.io+${options.keyword}`;
0 commit comments