uutils / findutils

Rust implementation of findutils
MIT License
314 stars 38 forks source link

Print help/version without error prefix #455

Closed andrewliebenow closed 1 month ago

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 77.29%. Comparing base (eefc580) to head (d8f8eff). Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #455 +/- ## ========================================== + Coverage 77.19% 77.29% +0.10% ========================================== Files 36 36 Lines 4416 4436 +20 Branches 988 991 +3 ========================================== + Hits 3409 3429 +20 Misses 1004 1004 Partials 3 3 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

sylvestre commented 2 months ago

please improve the commit explaining what you are fixing

andrewliebenow commented 2 months ago

I updated the commit. New commit message:

xargs: print help/version without error prefix

xargs, when executed with -h/--help or -V/--version, is printing an
"Error: " prefix before the help and version text. The exit code is
also incorrect (1, instead of 0).

Display the help/version text without the erroneous prefix, and exit
with the correct exit code (success, 0).

Add tests for this bug to prevent regressions.