guess that doesn't apply

pull/2787/head
Mike Wyatt 4 weeks ago
parent afb5ade2da
commit 8408ffb037

@ -97,10 +97,7 @@ pub fn get_matches(
cli, cli,
); );
let matches = if let Some(mut args) = args { let matches = if let Some(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());
app.try_get_matches_from(args) app.try_get_matches_from(args)
} else { } else {
app.try_get_matches() app.try_get_matches()

Loading…
Cancel
Save