Skip to content

fix(true/false): print Usage line before about in --help (fixes #10279)#12349

Open
leno23 wants to merge 1 commit into
uutils:mainfrom
leno23:fix/true-false-usage-header-10279
Open

fix(true/false): print Usage line before about in --help (fixes #10279)#12349
leno23 wants to merge 1 commit into
uutils:mainfrom
leno23:fix/true-false-usage-header-10279

Conversation

@leno23
Copy link
Copy Markdown

@leno23 leno23 commented May 17, 2026

Summary

  • Use a custom help template for true and false so --help starts with a Usage: line, matching GNU coreutils.

Test plan

  • cargo run -p uu_false -- --help | head -1 shows Usage: false ...
  • cargo run -p uu_true -- --help | head -1 shows Usage: true ...

Fixes #10279

Made with Cursor

Match GNU coreutils help output order for true and false.

Fixes uutils#10279

Co-authored-by: Cursor <cursoragent@cursor.com>
@oech3
Copy link
Copy Markdown
Contributor

oech3 commented May 17, 2026

This should be part of *.ftl files. Or translation is removed.

@github-actions
Copy link
Copy Markdown

GNU testsuite comparison:

GNU test failed: tests/misc/tty-eof. tests/misc/tty-eof is passing on 'main'. Maybe you have to rebase?
Skip an intermittent issue tests/date/resolution (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/misc/io-errors (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/tail/pipe-f (passes in this run but fails in the 'main' branch)
Skipping an intermittent issue tests/tail/tail-n0f (passes in this run but fails in the 'main' branch)
Note: The gnu test tests/unexpand/bounded-memory is now being skipped but was previously passing.

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.

missing "Usage:" in true/false

2 participants