Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array options (i.e -Werror -Wall becomes {"error", "all"}) #56

Open
a-random-lemurian opened this issue Feb 12, 2022 · 1 comment
Open

Comments

@a-random-lemurian
Copy link
Contributor

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
Copy link
Owner

cofyc commented Feb 14, 2022

no builtin support, implement via callback? add a raw opt type with which users can write any logic to parse opt value?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants