From 8408ffb0372431624f2f163ba7ce57d9e6603d11 Mon Sep 17 00:00:00 2001 From: Mike Wyatt Date: Sat, 21 Jun 2025 15:07:52 -0300 Subject: [PATCH] guess that doesn't apply --- plugins/cli/src/parser.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugins/cli/src/parser.rs b/plugins/cli/src/parser.rs index 25e12568..6cfe54e1 100644 --- a/plugins/cli/src/parser.rs +++ b/plugins/cli/src/parser.rs @@ -97,10 +97,7 @@ pub fn get_matches( cli, ); - let matches = if let Some(mut args) = args { - // try_get_matches_from assumes the first argument is the command name, - // so we prepend something to get the correct matches. - args.insert(0, package_info.name.clone()); + let matches = if let Some(args) = args { app.try_get_matches_from(args) } else { app.try_get_matches()