From 6cb4f2a1f2153d611ce776ceb0e3d807e89f82fa 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..f7bd0f5e 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, visible_alias = "set")] pub write_msrv: bool, #[command(flatten)]