diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-11-24 15:59:52 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-11-24 15:59:52 +0100 |
commit | eb202135397e457baa58423faec4d8d0441c2292 (patch) | |
tree | b918852eeb27e53f5b928c2bde3ef37b9d0a2e89 /README | |
parent | 19c58fff82a1c8e7f10b4ccc09711594d594e4a7 (diff) | |
download | libuniso-eb202135397e457baa58423faec4d8d0441c2292.tar.bz2 libuniso-eb202135397e457baa58423faec4d8d0441c2292.tar.xz |
lua: accept both file descriptor or filename as parameter
Diffstat (limited to 'README')
-rw-r--r-- | README | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -18,4 +18,12 @@ To install: make install +Example how to use Lua module: + +require("uniso") + +-- Use 0 for stdin +print(uniso.uniso(arg[1] or 0, function(current, total, filename) + print(current, total, filename) +end)) |