From 91bc906bc992608aa43088d74e3de5f42d4bda21 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Wed, 22 Apr 2020 00:44:33 +0100 Subject: [PATCH] didyoumean/cli: improve output of lookup subcommand --- modules/feature-search-didyoumean.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/feature-search-didyoumean.php b/modules/feature-search-didyoumean.php index 4153eb9..8e09459 100644 --- a/modules/feature-search-didyoumean.php +++ b/modules/feature-search-didyoumean.php @@ -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; }