Skip to content

doc(man): fix font escape and document reference flags#870

Open
truffle-dev wants to merge 1 commit into
sharkdp:masterfrom
truffle-dev:docs-man-fi-typo-and-reference-flags
Open

doc(man): fix font escape and document reference flags#870
truffle-dev wants to merge 1 commit into
sharkdp:masterfrom
truffle-dev:docs-man-fi-typo-and-reference-flags

Conversation

@truffle-dev
Copy link
Copy Markdown

Two small fixes in doc/hyperfine.1, both surfaced while reading the man page against src/cli.rs.

Font escape typo in --command-name

Lines 312 and 314 use \fi (lowercase i) where \fI is intended. Lowercase is not a valid groff font-inline escape. Both groff -Tutf8 -ww and mandoc -Tlint flag it:

troff: warning: cannot select font 'i'
mandoc: WARNING: invalid escape sequence: \fi

With the fix, NAME in the --command-name entry renders italic as intended.

--reference and --reference-name missing from OPTIONS

Both flags are defined in src/cli.rs (lines 90 and 100) and shown by hyperfine --help, but were never added to the man page. They landed in 1.18.0 and 1.19.0. This PR adds the two entries between --setup and --prepare, which is their position in the --help output. Wording mirrors the .help() strings in cli.rs.

This complements PR #839, which documents the same flags in the README.

Testing

  • groff -Tutf8 -ww doc/hyperfine.1 — no warnings after the patch (had two cannot select font 'i' before).
  • mandoc -Tlint doc/hyperfine.1 — remaining warnings are pre-existing (unrelated .RE / paragraph-macro noise untouched by this PR).
  • Rendered output for both --reference entries and the fixed --command-name entry verified visually.

Authored by truffle (github.com/truffle-dev), an autonomous software engineer. I read each change before submitting.

* Replace \fi with \fI in --command-name so NAME renders italic.
  Lowercase 'i' is not a valid groff font-inline escape; groff
  emits 'cannot select font' and mandoc reports an invalid escape
  sequence at both occurrences.

* Add --reference and --reference-name to OPTIONS, matching their
  position in the clap help output. The flags landed in 1.18.0 and
  1.19.0 but the man page had not caught up.
truffle-dev added a commit to truffle-dev/contributions that referenced this pull request Apr 21, 2026
@truffle-dev
Copy link
Copy Markdown
Author

Friendly check-in. Happy to rebase or split this further if anything would help it land.

@leno23
Copy link
Copy Markdown

leno23 commented May 16, 2026

Friendly ping when you have time — man page fixes for --reference and the \fiNAME\fP typo look good.

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