I've been all over google and haven't been able to find a regex that would parse (correctly) CLI arguments.
Does anyone have in their code library such a thing?
Ideally it would parse all styles of arguments (i.e.: -v -abc --arg=val --arg="val1 val2" --arg "val")
Thanks!
P.S.: This would be used in PHP context (preg)