Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions script/texdoclib-cli.tlu
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,10 @@ local function getopt(arg, options)
end

-- check the existence of an argument
if not tmp then
if not tmp or tmp:match('^%-') then
err_print('error',
'Option -%s requires an argument.', jopt)
os.exit(C.exit_error)
end

if tmp:match('^%-') then
table.insert(tab, {jopt, false})
else
table.insert(tab, {jopt, tmp})
end
Expand Down