Add migration guidance for removed --reference option

This commit is contained in:
David Peter committed 2026-10-07 22:44:36 +02:00
1 parent 6dddb02d73
commit d11a55a326
2 files changed
+32

No files matched your search

+13
View File
@@ -50,6 +50,19 @@ fn build_command() -> Command {
.value_hint(ValueHint::CommandString)
.value_parser(NonEmptyStringValueParser::new()),
)
// Retain the removed option to provide migration guidance for old invocations.
.arg(
Arg::new("reference")
.long("reference")
.hide(true)
.value_name("CMD")
.num_args(0..=1)
.default_missing_value("")
.value_parser(|_: &str| -> Result<String, String> {
Err("The --reference option has been removed. Put your reference command first instead.".into())
})
.help("Removed: put your reference command first instead."),
)
.arg(
Arg::new("metrics")
.long("metrics")