1
0
Fork 0
mirror of https://github.com/sbrl/Pepperminty-Wiki.git synced 2024-11-22 16:33:00 +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]); $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;
} }