1. CLI argument parser and entry point #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
Create the main
wkhtmltopdfPython 3 entry point withargparse-based CLI parsing.Tasks
#!/usr/bin/env python3shebangargparse:INPUT(multiple),OUTPUT_FILE--page-size,--page-width,--page-height--orientation,--margin-top,--margin-bottom,--margin-left,--margin-right--dpi,--zoom,--quiet--disable-local-file-access,--enable-local-file-access--javascript-delay,--header-html,--footer-html--cookie-jar,--header-spacing,--header-line--disable-smart-shrinking,--viewport-size--chrome-path,--timeout,--extra-chromium-args--print-media-type--version,--help--version--helpAcceptance Criteria
wkhtmltopdf --helpprints full usagewkhtmltopdf --versionprints version stringwkhtmltopdf --bad-flagexits with code 7 and error message on stderrwkhtmltopdfwith no args exits with code 7 and shows usageNotes