+
Skip to content

Print help/version without error prefix #455

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 23, 2024

Conversation

andrewliebenow
Copy link
Contributor

No description provided.

Copy link

codecov bot commented Sep 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

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

Additional details and impacted files
@@            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              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sylvestre
Copy link
Contributor

please improve the commit explaining what you are fixing

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.
@andrewliebenow andrewliebenow force-pushed the help-and-version-without-error branch from 1aff400 to a798e62 Compare September 22, 2024 21:59
@andrewliebenow
Copy link
Contributor Author

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.

@andrewliebenow andrewliebenow force-pushed the help-and-version-without-error branch from a798e62 to fecba23 Compare September 23, 2024 10:29
.args([option_style])
.assert()
.success()
.code(0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't bother updating it but I think success implies code(0)

@sylvestre sylvestre merged commit b641b85 into uutils:main Sep 23, 2024
19 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.

2 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载