Closed YDX-2147483647 closed 3 months ago
Attention: Patch coverage is 91.78082%
with 6 lines
in your changes missing coverage. Please review.
Project coverage is 60.48%. Comparing base (
a2e350c
) to head (9bc80cd
).
Files | Patch % | Lines |
---|---|---|
src/xargs/mod.rs | 86.66% | 3 Missing and 3 partials :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Hi! I've fixed the issue in normal cases, but if conflict options are given, things get complicated.
Currently, we throw a warning and take the last option.
Should I follow this behaviour and change 100+ lines? Or may I use Arg::conflicts_with
in clap and throw an error?
(Modified from https://github.com/uutils/findutils/issues/362#issuecomment-2081512700 )
@sylvestre Hello, may I ask your opion on https://github.com/uutils/findutils/pull/363#issuecomment-2081766265? (No need to review codes, just a design question.)
@YDX-2147483647 sorry, i missed your question :( you should do the same as the GNU implementation
Never mind and thanks for your answer.
So those 100+ lines is worth changing. I'll update the branch and add more tests when I have time.
Well, I've updated the branch. Could someone approve the CI? I think this PR is ready now.
it it ready for review? :) thanks
Yes! It is ready.
nice:
Warning: Changes from main: PASS +4 / FAIL -4 / ERROR +0 / SKIP +0
Resolves #362
-I
/-i
/--replace
is given, now we process extra args (read from stdin) one by one, and replace all matches in initial args (given in argv) with the same extra arg in each time. (i.e. Cartesian product)-L
(--max-lines
),-n
(--max-args
) and-I
/-i
are mutually exclusive. Now we warn if more than one are given.