mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-11-22 04:23:01 +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]);
|
||||
if($correction === null) $correction = "(nothing found)";
|
||||
echo("Correction: $correction\n");
|
||||
echo("$correction\n");
|
||||
break;
|
||||
case "lookup":
|
||||
if(count($args) < 2) {
|
||||
|
@ -77,7 +77,8 @@ Subcommands:
|
|||
$args[1],
|
||||
$settings->search_didyoumean_editdistance
|
||||
);
|
||||
var_dump($results);
|
||||
echo(implode("\n", $results));
|
||||
echo("\n");
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue