Skip to content

feat: add --ignore-exit-code alias for --ignore-failure (fixes #828)#886

Open
leno23 wants to merge 1 commit into
sharkdp:masterfrom
leno23:feat/ignore-exit-code-alias-828-v2
Open

feat: add --ignore-exit-code alias for --ignore-failure (fixes #828)#886
leno23 wants to merge 1 commit into
sharkdp:masterfrom
leno23:feat/ignore-exit-code-alias-828-v2

Conversation

@leno23
Copy link
Copy Markdown

@leno23 leno23 commented May 25, 2026

Summary

Fixes #828.

Adds --ignore-exit-code as an alias for the existing --ignore-failure flag (and -i short option). The new name better reflects what the flag does: ignore non-zero exit codes rather than ignoring failed benchmark measurements (as discussed in #827).

The old --ignore-failure name is retained for backward compatibility.

Changes

  • Register --ignore-exit-code as a clap alias on the existing ignore-failure argument
  • Clarify help text and error messages
  • Document the alias in doc/hyperfine.1
  • Add integration tests for --ignore-exit-code and --ignore-exit-code=1

Test plan

  • cargo test ignore_exit_code
  • cargo clippy -- -D warnings

Made with Cursor

…p#828)

The new name better reflects that the flag ignores non-zero exit codes
rather than discarding failed benchmark measurements. The old flag is
kept for compatibility.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

Suggestion: rename --ignore-failure to --ignore-exit-code for Hyperfine 2.0

1 participant