Skip to content

Commit 56c62cc

Browse files
committed
Add error message for watermark.lua usage
1 parent 851f9c9 commit 56c62cc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

example/watermark.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ local vips = require "vips"
88
-- uncomment for very chatty output
99
-- vips.log.enable(true)
1010

11+
if #arg ~= 3 then
12+
print("usage: luajit watermark.lua input-image-file output-image-file text")
13+
error()
14+
end
1115
local im = vips.Image.new_from_file(arg[1], {access = "sequential"})
1216

1317
-- make the text mask

0 commit comments

Comments
 (0)