Skip to content

expr: stop repeating the about line in --help - #14000

Open
MsfPablo wants to merge 2 commits into
uutils:mainfrom
MsfPablo:fix/expr-help-duplicate-about
Open

expr: stop repeating the about line in --help#14000
MsfPablo wants to merge 2 commits into
uutils:mainfrom
MsfPablo:fix/expr-help-duplicate-about

Conversation

@MsfPablo

Copy link
Copy Markdown
Contributor

Fixes #13983.

expr-after-help opened by restating expr-about verbatim, so expr --help printed "Print the value of EXPRESSION to standard output" once as the clap about line and again a few lines down. Dropped the duplicated sentence from the after-help text and kept the part that is actually about the section below it.

Applied to en-US.ftl and fr-FR.ftl, which both carried the same duplication.

GNU's expr --help reads "Print the value of EXPRESSION to standard output. A blank line below separates increasing precedence groups." as one paragraph, but it has no separate about line — clap prints ours already, so keeping only the second sentence gives the same result rather than diverging from GNU.

Print the value of EXPRESSION to standard output

Usage: expr [EXPRESSION]
       expr [OPTIONS]
...
A blank line below separates increasing precedence groups.

EXPRESSION may be:

cargo test --no-default-features --features expr --test tests test_expr: 132 passed.

@codspeed-hq

codspeed-hq Bot commented Aug 18, 2026

Copy link
Copy Markdown

Merging this PR will degrade performance by 0.07%

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

⚡ 1 improved benchmark
❌ 1 regressed benchmark
✅ 86 untouched benchmarks
⏩ 320 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
Simulation cksum_crc 41.4 ms 43.1 ms -3.86%
Simulation numfmt_stream_to_si 414.1 ms 398.6 ms +3.87%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing MsfPablo:fix/expr-help-duplicate-about (378a876) with main (b2a617e)2

Open in CodSpeed

Footnotes

  1. 320 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

  2. No successful run was found on main (e275cd5) during the generation of this report, so b2a617e was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@github-actions

github-actions Bot commented Aug 18, 2026

Copy link
Copy Markdown

GNU testsuite comparison:

Skipping an intermittent issue tests/cut/bounded-memory (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/date/date-locale-hour (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/misc/tty-eof (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/tail/symlink (passes in this run but fails in the 'main' branch)
Note: The gnu test tests/basenc/bounded-memory is now being skipped but was previously passing.

@oech3

oech3 commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

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

expr: Redundunt text for asking --help

2 participants