Skip to content

feat: improve error message on unexpected options#77

Draft
NickCrews wants to merge 1 commit into
masterfrom
unexpected-args-err-msg
Draft

feat: improve error message on unexpected options#77
NickCrews wants to merge 1 commit into
masterfrom
unexpected-args-err-msg

Conversation

@NickCrews

@NickCrews NickCrews commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Attempt at addressing #5

TODO: ensure we have test cases for each of the examples brought up in that issue:

  • --dry-run vs --dryrun
  • Usage: cli <arg1> <arg2> & the usage of cli abc currently gives Warning: found unmatched (duplicate?) arguments [Argument(None, '1')], this should be better

@codecov

codecov Bot commented Jul 19, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 88.23529% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 99.58%. Comparing base (587f41a) to head (1345d07).

Files with missing lines Patch % Lines
docopt/__init__.py 88.23% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##            master      #77      +/-   ##
===========================================
- Coverage   100.00%   99.58%   -0.42%     
===========================================
  Files            2        2              
  Lines          464      480      +16     
===========================================
+ Hits           464      478      +14     
- Misses           0        2       +2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant