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

std::bad_function_call if no param arg in place of param arg #19

Open
igagis opened this issue Feb 24, 2024 · 0 comments
Open

std::bad_function_call if no param arg in place of param arg #19

igagis opened this issue Feb 24, 2024 · 0 comments
Assignees

Comments

@igagis
Copy link
Member

igagis commented Feb 24, 2024

clargs::parser p;

p.add('a', "aaa", "parametrized arg", [](std::string_view v){});

p.parse(...);

run from cmd line as:

exec --aaa

Result:
std::bad_function_call is thrown.

Expected result:
std::invalid_argument is thrown saying that the arg requires a parameter.

Note:
running as

exec --aaa=1

gives no error

@igagis igagis self-assigned this Feb 24, 2024
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

1 participant