Skip to content

Commit

Permalink
fixup! Rewrite Multicall handling to just strip dir from argv0
Browse files Browse the repository at this point in the history
  • Loading branch information
fishface60 committed Nov 19, 2021
1 parent 378d95b commit 21e7674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/build/app/mod.rs
Expand Up @@ -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!(
Expand Down

0 comments on commit 21e7674

Please sign in to comment.