Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli: fix --help/readme to say output paths for multiple report types is supported #6333

Closed
connorjclark opened this issue Oct 17, 2018 · 3 comments
Assignees

Comments

@connorjclark
Copy link
Collaborator

Ran into this limitation when I was a LH user. There is currently no way to specify the output path if you wish to receive multiple report formats.

Suggested interface:

lighthouse https://www.cnn.com --output json,html --output-path out/my-lhr.json,out/my-other-lhr.csv
@connorjclark connorjclark self-assigned this Oct 17, 2018
@brendankenny
Copy link
Member

you can specify a path for all of them, just not individual paths. If calling on the CLI, it seems trivial to do --output-path path/my-lhr and get path/my-lhr.report.json, path/my-lhr.report.csv, path/my-lhr.report.html, then move them if you really want a completely custom name.

@connorjclark
Copy link
Collaborator Author

connorjclark commented Oct 17, 2018

That would have covered my use case just fine. In fact, that's probably what I did, I'm just confused on the matter now. Could just update the readme then, since there's this:

If using multiple outputs, --output-path is ignored.

I think I just recall being confused by that.

@brendankenny
Copy link
Member

oh, ha, yeah :( that's hilariously out of date

@brendankenny brendankenny changed the title cli: support setting output paths for multiple report types cli: fix --help/readme to say output paths for multiple report types is supported Oct 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants