Skip to content

Commit

Permalink
Merge pull request #340 from jonogillettt/main
Browse files Browse the repository at this point in the history
Fix `profiles` parameter not being passed for site metrics, update CLI option descriptions
  • Loading branch information
Michael Dijkstra authored Aug 24, 2021
2 parents 07151f9 + 0646f81 commit 1931307
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/cli/site/metrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const main = async args => {
site: args.site,
pages: args.pages,
measurements: args.metrics,
profiles: args.profiles,
from,
to
}
Expand Down
8 changes: 5 additions & 3 deletions src/utils/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,19 @@ const options = {
describe: 'The cursor to fetch records after'
},
pages: {
type: 'array',
describe:
'A space separated list of page uuids to return metrics for. eg: --pages=4a82662c-67dc-40cd-a461-6afc904260f3 51b3cb71-e534-4d48-842a-d8c9da672f55 or use multiple --pages for each page'
'A space separated list of page uuids to return metrics for (when not set, defaults to all pages). eg: --pages=4a82662c-67dc-40cd-a461-6afc904260f3 51b3cb71-e534-4d48-842a-d8c9da672f55 or use multiple --pages for each page'
},
profiles: {
type: 'array',
describe:
'A space separated list of profile uuids to return metrics for. eg: --profiles=4a82662c-67dc-40cd-a461-6afc904260f3 51b3cb71-e534-4d48-842a-d8c9da672f55 or use multiple --profiles for each profile'
'A space separated list of profile uuids to return metrics for (when not set, defaults to all test profiles). eg: --profiles=4a82662c-67dc-40cd-a461-6afc904260f3 51b3cb71-e534-4d48-842a-d8c9da672f55 or use multiple --profiles for each profile'
},
metrics: {
type: 'array',
describe:
'A space separated list of metrics to return. eg: --metrics=first-meaningful-paint first-interactive or use multiple --metrics flags for each metric'
'A space separated list of metrics to return (when not set, defaults to all metrics). eg: --metrics=first-meaningful-paint first-interactive or use multiple --metrics flags for each metric'
}
}

Expand Down

0 comments on commit 1931307

Please sign in to comment.