From 21e767420e8222891709d78be92bb766bf823422 Mon Sep 17 00:00:00 2001 From: Richard Maw Date: Fri, 19 Nov 2021 23:55:26 +0000 Subject: [PATCH] fixup! Rewrite Multicall handling to just strip dir from argv0 --- src/build/app/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build/app/mod.rs b/src/build/app/mod.rs index 3801cd28ce9f..49ea7be38701 100644 --- a/src/build/app/mod.rs +++ b/src/build/app/mod.rs @@ -2182,7 +2182,7 @@ impl<'help> App<'help> { if self.settings.is_set(AppSettings::Multicall) { if let Some((argv0, _)) = it.next() { let argv0 = Path::new(&argv0); - if let Some(command) = argv0.file_name().and_then(|f| f.to_str()) { + if let Some(command) = argv0.file_stem().and_then(|f| f.to_str()) { // Stop borrowing command so we can get another mut ref to it. let command = command.to_owned(); debug!(