Skip to content

incorrect Nargs validation error message#175

Merged
Taywee merged 1 commit into
Taywee:masterfrom
jmestwa-coder:nargs-validation-message
May 26, 2026
Merged

incorrect Nargs validation error message#175
Taywee merged 1 commit into
Taywee:masterfrom
jmestwa-coder:nargs-validation-message

Conversation

@jmestwa-coder
Copy link
Copy Markdown
Contributor

Summary

Fix the args::Nargs(min, max) validation error message when max < min.

The existing validation correctly rejects invalid ranges, but the diagnostic text reported the opposite relation.

Changes

  • Update the thrown UsageError message to match the actual validation condition.
  • Strengthen the existing nargs regression test to verify the exact diagnostic text.

@Taywee
Copy link
Copy Markdown
Owner

Taywee commented May 26, 2026

Clean improvement. Thanks for the PR.

@Taywee Taywee merged commit 2e6f3e3 into Taywee:master May 26, 2026
7 checks passed
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