fathyb / html2svg

Convert HTML and `<canvas>` to SVG, PDF, or images using Chromium
1.19k stars 30 forks source link

option -w is used for both wait and width #24

Closed s1291 closed 1 year ago

s1291 commented 1 year ago

Running: docker run fathyb/html2svg --help, one get the following:

Usage: html2svg [options] [command] <url>

Arguments:
  url                    URL to the web page to render

Options:
  -f, --full             capture the entire page
  -w, --wait <seconds>   set the amount of seconds to wait between the page
                         loaded event and taking the screenshot (default: 1)
  -w, --width <width>    set the viewport width in pixels (default: 1920)
  -h, --height <height>  set the viewport height in pixels (default: 1080)
  -f, --format <format>  set the output format, should one of these values:
                         svg, pdf, png, jpg, webp (default: "svg")
  --help                 display help for command

Commands:
  serve [options]

notice that -w is used for both wait and width. (This should be updated in README.md as well).

s1291 commented 1 year ago

Thanks for the update. Please update the README.md file as well.

fathyb commented 1 year ago

The readme file has been updated and the updated flag has been published to the 1.0.0 release. Thanks for the report!