1
0
mirror of https://github.com/LDDestroier/CC/ synced 2024-11-10 12:00:00 +00:00

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

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