cleanup/namespacing

This commit is contained in:
2025-08-10 17:36:57 -07:00
parent 5c1a76f223
commit 9d5a558137
11 changed files with 50 additions and 63 deletions

View File

@@ -43,12 +43,16 @@ func main() {
width float64
height float64
)
flag.StringVar(&input, "in", "dist/print.html", "input HTML file path")
flag.StringVar(&output, "out", "dist/output.pdf", "output PDF path")
flag.StringVar(&input, "in", "", "input HTML file path (required)")
flag.StringVar(&output, "out", "", "output PDF path (required)")
flag.Float64Var(&width, "w", config.PageWidthIn, "page width in inches")
flag.Float64Var(&height, "h", config.PageHeightIn, "page height in inches")
flag.Parse()
if input == "" || output == "" {
log.Fatal("--in and --out are required")
}
absInput, _ := filepath.Abs(input)
url := "file://" + absInput