Array options (i.e -Werror -Wall becomes {"error", "all"})
a-random-lemurian opened this issue · 1 comments
a-random-lemurian commented
Now, if I was actually making a compiler, I probably would use a different argument parsing library. How would we deal with multiple options?
If we ran:
./a.out -Ooption1 -Ooption2
I would expect to get something along the lines of {"option1", "option2"}
. Is it possible to do this, or do I have to implement this myself?
cofyc commented
no builtin support, implement via callback? add a raw opt type with which users can write any logic to parse opt value?