Skip to content

Fix incorrect rejection of multiple usage of same CLI argument - #294

Merged
sylvestre merged 2 commits into
uutils:mainfrom
LoukasPap:issue250
Feb 8, 2026
Merged

sylvestre merged 2 commits into
uutils:mainfrom
LoukasPap:issue250

Conversation

@LoukasPap

Copy link
Copy Markdown
Contributor

Fixes issue 250

Previously, using an argument more than 1 time regardless if it was the short, long or alias format, resulted in an error. This was caused due to the clap's default way of working. Adding .args_override_self(true) to the Command instance solves the problem.

@github-actions

github-actions Bot commented Feb 8, 2026

Copy link
Copy Markdown

GNU sed testsuite comparison:

Test results comparison:
  Current:   TOTAL: 64 / PASSED: 16 / FAILED: 48 / SKIPPED: 0
  Reference: TOTAL: 64 / PASSED: 15 / FAILED: 49 / SKIPPED: 0

Changes from main branch:
  TOTAL: +0
  PASSED: +1
  FAILED: -1

Test improvements (1):
  + print_line

@codecov

codecov Bot commented Feb 8, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.05%. Comparing base (a6207cb) to head (d5e5993).
⚠️ Report is 14 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #294      +/-   ##
==========================================
+ Coverage   82.03%   82.05%   +0.01%     
==========================================
  Files          13       13              
  Lines        5423     5429       +6     
  Branches      291      291              
==========================================
+ Hits         4449     4455       +6     
  Misses        972      972              
  Partials        2        2              
Flag Coverage Δ
macos_latest 82.50% <100.00%> (+0.01%) ⬆️
ubuntu_latest 82.61% <100.00%> (+0.01%) ⬆️
windows_latest 0.00% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 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.

@sylvestre

Copy link
Copy Markdown
Contributor

nice

PASSED: +1
FAILED: -1

@sylvestre
sylvestre merged commit e3684f0 into uutils:main Feb 8, 2026
27 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.

incorrectly rejects -E and -r used together

2 participants