mirror of
https://github.com/LDDestroier/CC/
synced 2025-02-01 19:59:09 +00:00
Update argparser2.lua
This commit is contained in:
parent
721a622b3a
commit
ba6deba4d9
@ -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)
|
local function checkOption(argName, argInfo, isShort)
|
||||||
for i = 1, #argInfo do
|
for i = 1, #argInfo do
|
||||||
if argInfo[i][isShort and 2 or 3] == argName then
|
if argInfo[i][isShort and 2 or 3] == argName then
|
||||||
|
Loading…
Reference in New Issue
Block a user