Skip to content

Commit b67a40f

Browse files
committed
cli(help): list available categories
1 parent 5bc1b6e commit b67a40f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lighthouse-cli/cli-flags.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function getFlags(manualArgv) {
129129
'precomputed-lantern-data-path': 'Path to the file where lantern simulation data should be read from, overwriting the lantern observed estimates for RTT and server latency.',
130130
'lantern-data-output-path': 'Path to the file where lantern simulation data should be written to, can be used in a future run with the `precomputed-lantern-data-path` flag.',
131131
'only-audits': 'Only run the specified audits',
132-
'only-categories': 'Only run the specified categories',
132+
'only-categories': 'Only run the specified categories. Available categories: accessibility, best-practices, performance, pwa, seo',
133133
'skip-audits': 'Run everything except these audits',
134134
'plugins': 'Run the specified plugins',
135135
'print-config': 'Print the normalized config for the given config and options, then exit.',

readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ Examples:
113113
lighthouse <url> --quiet --chrome-flags="--headless" Launch Headless Chrome, turn off logging
114114
lighthouse <url> --extra-headers "{\"Cookie\":\"monster=blue\"}" Stringify\'d JSON HTTP Header key/value pairs to send in requests
115115
lighthouse <url> --extra-headers=./path/to/file.json Path to JSON file of HTTP Header key/value pairs to send in requests
116+
lighthouse <url> --only-categories=performance,pwa Only run the specified categories. Available categories: accessibility,
117+
best-practices, performance, pwa, seo.
116118
117119
For more information on Lighthouse, see https://developers.google.com/web/tools/lighthouse/.
118120
```

0 commit comments

Comments
 (0)