Update argparser2.lua

This commit is contained in:
LDDestroier 2022-01-08 14:05:15 -05:00 committed by GitHub
parent 721a622b3a
commit ba6deba4d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,13 @@
--[[
Lua Argument Parser
written by LDDestroier
Features:
+ Full/abbreviated options in addition to regular arguments
+ Abbreviated option grouping
+ Option parameters (of which there can be more than one per option)
--]]
local function checkOption(argName, argInfo, isShort)
for i = 1, #argInfo do
if argInfo[i][isShort and 2 or 3] == argName then