Fix changelog, replace a couple qerror calls with error

Ref #1746
develop
lethosor 2021-01-29 00:02:42 -05:00
parent d4aef78b26
commit de6f9183fd
No known key found for this signature in database
GPG Key ID: 76A269552F4F58C1
2 changed files with 3 additions and 3 deletions

@ -45,7 +45,7 @@ changelog.txt uses a syntax similar to RST, with a few special sequences:
- `quickfort`: Dreamfort blueprint set improvements: add a streamlined checklist for all required dreamfort commands and give names to stockpiles, levers, bridges, and zones
## Lua
- ``processArgs2()`` added to utils.lua, providing a callback interface for parameter parsing and getopt-like flexibility for parameter ordering and combination (see docs in ``library/lua/utils.lua`` and ``library/lua/3rdparty/alt_getopt.lua`` for details).
- ``processArgsGetopt()`` added to utils.lua, providing a callback interface for parameter parsing and getopt-like flexibility for parameter ordering and combination (see docs in ``library/lua/utils.lua`` and ``library/lua/3rdparty/alt_getopt.lua`` for details).
# 0.47.04-r4

@ -647,10 +647,10 @@ function processArgsGetopt(args, optionActions)
for _,optionAction in ipairs(optionActions) do
local sh_opt,long_opt = optionAction[1], optionAction[2]
if not sh_opt or type(sh_opt) ~= 'string' or #sh_opt ~= 1 then
qerror('optionAction missing option letter at index 1')
error('optionAction missing option letter at index 1')
end
if not optionAction.handler then
qerror(string.format('handler missing for option "%s"', sh_opt))
error(string.format('handler missing for option "%s"', sh_opt))
end
sh_opts = sh_opts .. sh_opt
if optionAction.hasArg then sh_opts = sh_opts .. ':' end