Skip to content

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

Open
kevinburke wants to merge 1 commit intouutils:mainfrom
kevinburke:xargs-hyphen-values
Open

xargs: accept hyphenated -I and -E values#668
kevinburke wants to merge 1 commit intouutils:mainfrom
kevinburke:xargs-hyphen-values

Conversation

@kevinburke
Copy link
Copy Markdown

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.

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