mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-25 05:22:59 +00:00
didyoumean/cli: improve output of lookup subcommand
This commit is contained in:
parent
dda71eb971
commit
91bc906bc9
1 changed files with 3 additions and 2 deletions
|
@ -65,7 +65,7 @@ Subcommands:
|
||||||
}
|
}
|
||||||
$correction = search::didyoumean_correct($args[1]);
|
$correction = search::didyoumean_correct($args[1]);
|
||||||
if($correction === null) $correction = "(nothing found)";
|
if($correction === null) $correction = "(nothing found)";
|
||||||
echo("Correction: $correction\n");
|
echo("$correction\n");
|
||||||
break;
|
break;
|
||||||
case "lookup":
|
case "lookup":
|
||||||
if(count($args) < 2) {
|
if(count($args) < 2) {
|
||||||
|
@ -77,7 +77,8 @@ Subcommands:
|
||||||
$args[1],
|
$args[1],
|
||||||
$settings->search_didyoumean_editdistance
|
$settings->search_didyoumean_editdistance
|
||||||
);
|
);
|
||||||
var_dump($results);
|
echo(implode("\n", $results));
|
||||||
|
echo("\n");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue