Skip to content

xargs: accept hyphenated -I and -E values#668

Merged
cakebaker merged 1 commit into
uutils:mainfrom
kevinburke:xargs-hyphen-values
May 5, 2026
Merged

xargs: accept hyphenated -I and -E values#668
cakebaker merged 1 commit into
uutils:mainfrom
kevinburke:xargs-hyphen-values

Conversation

@kevinburke
Copy link
Copy Markdown
Contributor

GNU xargs treats the arguments to -I, -E, and -e as values even when they begin with a hyphen. Clap was parsing those strings as options instead, so invocations like 'xargs -I -_' failed before xargs could process input.

Allow hyphen-leading values for those options and add regression coverage for replacement and EOF markers that start with '-'.

GNU xargs treats the arguments to -I, -E, and -e as values even when
they begin with a hyphen. Clap was parsing those strings as options
instead, so invocations like 'xargs -I -_' failed before xargs could
process input.

Allow hyphen-leading values for those options and add regression
coverage for replacement and EOF markers that start with '-'.
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.76%. Comparing base (2332e46) to head (f390932).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #668   +/-   ##
=======================================
  Coverage   91.76%   91.76%           
=======================================
  Files          31       31           
  Lines        6203     6206    +3     
  Branches      328      328           
=======================================
+ Hits         5692     5695    +3     
  Misses        390      390           
  Partials      121      121           

☔ 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.

@cakebaker cakebaker merged commit 69a20eb into uutils:main May 5, 2026
20 checks passed
@cakebaker
Copy link
Copy Markdown
Contributor

Thanks for your PR!

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