add missing d (device) option

This commit is contained in:
Dobrica Pavlinusic
2011-11-17 03:34:36 +08:00
committed by HW
parent 83cfaad621
commit 716d81a28b

View File

@@ -40,7 +40,7 @@ longopts = {
device = "d",
help = "h"
}
optarg, optind = alt_getopt.get_opts(ARGV, "p:G:hg:", longopts)
optarg, optind = alt_getopt.get_opts(ARGV, "p:G:hg:d:", longopts)
if optarg["h"] or ARGV[optind] == nil then
print("usage: ./reader.lua [OPTION] ... DOCUMENT.PDF")
print("Read PDFs on your E-Ink reader")