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

Fix minor cleanups #172

Merged
merged 3 commits into from
Apr 27, 2022
Merged

Fix minor cleanups #172

merged 3 commits into from
Apr 27, 2022

Conversation

skrobinson
Copy link
Contributor

No description provided.

As far as I can tell, this statement is never true.

When m_values.size() < *expected, ::consume has already thrown "Too few
arguments..." before ::validate is called.

When m_values.size() > *expected, ArgumentParser::parse_args_internal
has already thrown "Maximum number of positional arguments exceeded"
before ::validate is called.

If ::remaining is used to avoid the last exception, this Argument will
always consume the expected number of values, hence this expression is
again false.

Signed-off-by: Sean Robinson <[email protected]>
Signed-off-by: Sean Robinson <[email protected]>
@skrobinson skrobinson marked this pull request as ready for review April 27, 2022 22:07
@p-ranav p-ranav merged commit 6ba201e into p-ranav:master Apr 27, 2022
@skrobinson skrobinson deleted the fix-minor-cleanups branch May 16, 2022 15:03
@skrobinson skrobinson mentioned this pull request Jun 21, 2022
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

Successfully merging this pull request may close these issues.

2 participants