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
1 changed files with 3 additions and 2 deletions

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