summaryrefslogtreecommitdiff
path: root/bin/dbris
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2025-01-19 07:54:48 +0100
committerBirte Kristina Friesel <derf@finalrewind.org>2025-01-19 07:54:48 +0100
commit3689a6901a16db29cf19a1809ff8bc2724fd8253 (patch)
tree4b6b6615f6148d9787873c9e751b15ee838eaf09 /bin/dbris
parent042edb977fb7d5827af3bce844a8c00bd1442bcb (diff)
Add support for language selection
Diffstat (limited to 'bin/dbris')
-rwxr-xr-xbin/dbris4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/dbris b/bin/dbris
index 24b5203..6640c7c 100755
--- a/bin/dbris
+++ b/bin/dbris
@@ -14,7 +14,7 @@ use List::Util qw(max);
use Travel::Status::DE::DBRIS;
use Travel::Routing::DE::DBRIS;
-my ( $date, $time, $from, $to );
+my ( $date, $time, $from, $to, $language );
my $mots;
my $discounts;
my $developer_mode;
@@ -39,6 +39,7 @@ GetOptions(
'h|help' => sub { show_help(0) },
'f|full-route' => \$show_full_route,
'm|modes-of-transit=s' => \$mots,
+ 'l|language=s' => \$language,
't|time=s' => \$time,
'V|version' => \&show_version,
'cache!' => \$use_cache,
@@ -94,6 +95,7 @@ sub get_stop {
my %opt = (
from => get_stop($from_raw),
to => get_stop($to_raw),
+ language => $language,
cache => $cache,
developer_mode => $developer_mode,
);