1
0
mirror of https://github.com/LDDestroier/CC/ synced 2025-10-07 12:02:24 +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

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