3:fb9987d6df5d | 4:0677d0506878 |
---|---|
54 print(""); | 54 print(""); |
55 end | 55 end |
56 | 56 |
57 -- Process flags -- | 57 -- Process flags -- |
58 local function process_args(arg) | 58 local function process_args(arg) |
59 local f = arg[1] and arg[1]:match("^%-(%S+)"); | 59 local f = arg[1] and arg[1]:match("^%-%-?(%S+)"); |
60 if f then | 60 if f then |
61 table.remove(arg, 1); | 61 table.remove(arg, 1); |
62 if flags[f] then | 62 if flags[f] then |
63 local used = flags[f](arg); | 63 local used = flags[f](arg); |
64 if used then | 64 if used then |