mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
fix getopt module clearance in reader.lua
This commit is contained in:
@@ -6,7 +6,6 @@ require "ui/readerui"
|
||||
require "ui/filechooser"
|
||||
require "ui/infomessage"
|
||||
require "document/document"
|
||||
require "alt_getopt"
|
||||
|
||||
function showReader(file, pass)
|
||||
local document = DocumentRegistry:openDocument(file)
|
||||
@@ -87,8 +86,6 @@ function showusage()
|
||||
return
|
||||
end
|
||||
|
||||
optarg, optind = alt_getopt.get_opts(ARGV, "p:G:hg:dg:", longopts)
|
||||
|
||||
if ARGV[1] == "-h" then
|
||||
return showusage()
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user