Add option to name reference command

Add --reference-name option to give a reference command a name.

This was discussed in the PR that added --reference, #744, but
was unfortunately never implemented.
This commit is contained in:
Niklas Dewally authored and David Peter committed 2025-09-03 20:45:39 +02:00
1 parent 835fc43ea1
commit 2166c9f02e
4 files changed
+28 -1

No files matched your search

+8
View File
@@ -96,6 +96,14 @@ fn build_command() -> Command {
If this is unset, results are compared with the fastest command as reference."
)
)
.arg(
Arg::new("reference-name")
.long("reference-name")
.action(ArgAction::Set)
.value_name("CMD")
.help("Give a meaningful name to the reference command.")
.requires("reference")
)
.arg(
Arg::new("prepare")
.long("prepare")