Skip to content

Fix error message for invalid single-dash multichar options#3257

Closed
SergioChan wants to merge 2 commits intopallets:mainfrom
SergioChan:fix/issue-2779
Closed

Fix error message for invalid single-dash multichar options#3257
SergioChan wants to merge 2 commits intopallets:mainfrom
SergioChan:fix/issue-2779

Conversation

@SergioChan
Copy link

@SergioChan SergioChan commented Mar 10, 2026

Summary

  • detect invalid options that start with a registered single-dash multi-character option (example: -dbgwrong)
  • raise NoSuchOption with the full registered option name instead of the first character
  • add a regression test for this behavior

Fixes #2779

@davidism davidism closed this Mar 10, 2026
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.

Wrong error message when wrong multicharacter short option is passed

2 participants