|
|
@ -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()
|
|
|
|