From 7f49411f87ec0533a261ce875967f7f9a22b8777 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 28 May 2015 15:49:11 +0200 Subject: add --devmode option --- bin/efa-m | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'bin/efa-m') diff --git a/bin/efa-m b/bin/efa-m index 0dccb8c..0b1544d 100755 --- a/bin/efa-m +++ b/bin/efa-m @@ -16,7 +16,7 @@ use Travel::Status::DE::EFA; my $efa_url = 'http://efa.vrr.de/vrr/XSLT_DM_REQUEST'; my ( $date, $time, $input_type, $list_lines, $offset, $relative_times ); -my ($timeout); +my ( $timeout, $developer_mode ); my ( @grep_lines, @grep_platforms ); @ARGV = map { decode( 'UTF-8', $_ ) } @ARGV; @@ -33,6 +33,7 @@ GetOptions( 'timeout=i' => \$timeout, 'u|efa-url=s' => \$efa_url, 'V|version' => \&show_version, + 'devmode' => \$developer_mode, ) or show_help(1); @@ -51,13 +52,14 @@ if ( $input =~ s{ ^ (? address|poi|stop) : }{}x ) { } my $status = Travel::Status::DE::EFA->new( - date => $date, - efa_url => $efa_url, - place => $place, - name => $input, - time => $time, - type => $input_type, - timeout => $timeout, + date => $date, + developer_mode => $developer_mode, + efa_url => $efa_url, + place => $place, + name => $input, + time => $time, + type => $input_type, + timeout => $timeout, ); sub show_help { -- cgit v1.2.3