From 6c39e64ff70d32c146f53919424d2ba2d694e590 Mon Sep 17 00:00:00 2001 From: Chris Down Date: Tue, 5 Nov 2024 11:23:03 -0800 Subject: [PATCH] find: Add --set as alias of --write-msrv Introduce --set as an alias for the --write-msrv option in `cargo msrv find' to maintain consistency with `cargo msrv set'. Closes #1047. --- src/cli/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/mod.rs b/src/cli/mod.rs index 1583f6fc..96925149 100644 --- a/src/cli/mod.rs +++ b/src/cli/mod.rs @@ -164,7 +164,7 @@ pub struct FindOpts { /// For toolchains which include a Cargo version which supports the rust-version field, /// the `package.rust-version` field will be written. For older Rust toolchains, /// the `package.metadata.msrv` field will be written instead. - #[arg(long)] + #[arg(long, alias = "set")] pub write_msrv: bool, #[command(flatten)]