From 7b8fd3954c9076b814ccd6ce4723e543802cb769 Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Sun, 8 Oct 2023 04:04:40 +0900 Subject: [PATCH] cli: Add -n to known short flags without value https://github.com/rust-lang/cargo/commit/033e06a1cc429ede9c79752e44973008771d2740 --- src/cli.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli.rs b/src/cli.rs index 5f48d11a..69a05edf 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -343,7 +343,7 @@ impl Args { } } Short(flag) => { - if matches!(flag, 'q' | 'r') { + if matches!(flag, 'n' | 'q' | 'r') { // To handle combined short flags properly, handle known // short flags without value as special cases. cargo_args.push(format!("-{flag}"));