diff options
Diffstat (limited to 'samples/lpr.lua')
| -rw-r--r-- | samples/lpr.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/samples/lpr.lua b/samples/lpr.lua index 5ab4d69..2b059b1 100644 --- a/samples/lpr.lua +++ b/samples/lpr.lua | |||
| @@ -36,7 +36,8 @@ do | |||
| 36 | return usage() | 36 | return usage() |
| 37 | end | 37 | end |
| 38 | if arg[1] ~= "query" then | 38 | if arg[1] ~= "query" then |
| 39 | r,e=lp.send(arg[1],opt) | 39 | opt.file = arg[1] |
| 40 | r,e=lp.send(opt) | ||
| 40 | io.stdout:write(tostring(r or e),'\n') | 41 | io.stdout:write(tostring(r or e),'\n') |
| 41 | else | 42 | else |
| 42 | r,e=lp.query(opt) | 43 | r,e=lp.query(opt) |
