aboutsummaryrefslogtreecommitdiff
path: root/cmd/ql-print
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/ql-print')
-rw-r--r--cmd/ql-print/main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/ql-print/main.go b/cmd/ql-print/main.go
index d0c986d..647ba1a 100644
--- a/cmd/ql-print/main.go
+++ b/cmd/ql-print/main.go
@@ -17,6 +17,7 @@ import (
var scale = flag.Int("scale", 1, "integer upscaling")
var rotate = flag.Bool("rotate", false, "print sideways")
+var redblack = flag.Bool("redblack", false, "red and black print")
func main() {
flag.Usage = func() {
@@ -82,7 +83,7 @@ func main() {
log.Fatalln("the image is too high,", dy, ">", mi.PrintAreaLength, "pt")
}
- if err := p.Print(img); err != nil {
+ if err := p.Print(img, *redblack); err != nil {
log.Fatalln(err)
}
}