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

What is the recommended way to get all the args that have not been matched #73

Open
KOLANICH opened this issue Oct 22, 2021 · 2 comments

Comments

@KOLANICH
Copy link

KOLANICH commented Oct 22, 2021

I can try to parse the errors, but it'd be better to split the errors originating from additional args from the errors originating from invalid data.

@tomghuang
Copy link
Contributor

Hi @KOLANICH , I don't quite understand your question. Could you please elaborate more and give some examples to illustrate your question? Thanks.

@KOLANICH
Copy link
Author

Here is the "illustration": https://github.com/HydrArgs/HydrArgs/blob/master/backends/argtable3.cpp#L184

My lib is in process of some refactoring, so currently it is in an unworkable state. But the code is still readable.

Other libs often have mechanisms to get such args, like 1 , 2, 3

Getting the unparsed args is essential for implementing subcommands. Instead of integration of specs into a larger parser we just pass the args further and allow them to be parsed by another parser.

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