summaryrefslogtreecommitdiff
path: root/bin/db-iris
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-09-12 14:03:09 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-09-12 14:03:09 +0200
commit3cccdc35bc5b4edcc97d486cf9ed50fc7b2ca82a (patch)
treedead79a7978971ebe80c84b75d2d4559360d5e14 /bin/db-iris
parent4caa67e1f2ca8ec055acf24f04d99da028e5c06f (diff)
use Text::Levenshtein(XS) for fuzzy station name matching
Diffstat (limited to 'bin/db-iris')
-rwxr-xr-xbin/db-iris3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/db-iris b/bin/db-iris
index 298c792..90368ca 100755
--- a/bin/db-iris
+++ b/bin/db-iris
@@ -153,7 +153,8 @@ sub get_station {
else {
say STDERR "The input '$input_name' is ambiguous. Please choose one "
. 'of the following:';
- say STDERR join( "\n", map { $_->[1] } @stations );
+ say STDERR
+ join( "\n", map { $_->[1] . ' (' . $_->[0] . ')' } @stations );
exit(1);
}
}