Support list of exit codes in --ignore-failure

This commit is contained in:
David Peter authored and David Peter committed 2025-11-18 09:19:27 +01:00
1 parent 16348dcf35
commit b5a6860d96
4 files changed
+137 -25

No files matched your search

+8 -2
View File
@@ -226,9 +226,15 @@ fn build_command() -> Command {
.arg(
Arg::new("ignore-failure")
.long("ignore-failure")
.action(ArgAction::SetTrue)
.action(ArgAction::Set)
.value_name("MODE")
.num_args(0..=1)
.default_missing_value("all-non-zero")
.require_equals(true)
.short('i')
.help("Ignore non-zero exit codes of the benchmarked programs."),
.help("Ignore failures of the benchmarked programs. Without a value or with \
'all-non-zero', all non-zero exit codes are ignored. You can also provide \
a comma-separated list of exit codes to ignore (e.g., --ignore-failure=1,2)."),
)
.arg(
Arg::new("style")