Closed kidonng closed 2 years ago
Hello, thanks for the PR.
The value for effort
is inversely proportional to speed
- you can see how sharp converts from the latter to the former here:
https://github.com/lovell/sharp/blob/b10d8f89ca8190b3973a5c4c0e419be21eab3777/lib/output.js#L869
We should probably support both, and it looks like yargs
has a deprecateOption
feature we can use for this.
https://yargs.js.org/docs/#api-reference-deprecateoptionkey-msg-boolean
Thanks for the helpful links! Let me know if the latest changes looks good to you :)
Thank you!
Published as v0.3.1, thanks again.
speed
has been deprecated in sharp v0.30.0.However I'm not sure about renaming the CLI option since it may be more "breaking" than the library itself. But this is up to you :)