1
0
Fork 0
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:
Starbeamrainbowlabs 2020-04-22 00:44:33 +01:00
parent dda71eb971
commit 91bc906bc9
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -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;
}