From 873ff588eb54d6470b5f4689366eacbf33b77dc2 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 9 Jul 2009 13:37:35 +0200 Subject: efa: Added --version switch --- bin/efa | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bin/efa') diff --git a/bin/efa b/bin/efa index 2233bbd..04f3c34 100755 --- a/bin/efa +++ b/bin/efa @@ -11,6 +11,7 @@ use WWW::Mechanize; my $firsturl = 'http://efa.vrr.de/vrr/XSLT_TRIP_REQUEST2?language=de&itdLPxx_transpCompany=vrr'; my $posturl = 'http://efa.vrr.de/vrr/XSLT_TRIP_REQUEST2'; +my $VERSION = '1.0.1+git'; my $content; my %post; my $www = WWW::Mechanize->new( @@ -141,6 +142,7 @@ GetOptions( 'time=s' => \$time, 'to=s{2}' => \@to, 'to-type=s' => \$to_type, + 'version' => sub {print "efa version $VERSION\n"; exit 0}, 'via=s{2}' => \@via, 'via-type=s' => \$via_type, 'walk-speed=s' => \$walk_speed, @@ -447,6 +449,10 @@ C<--post lineRestriction=400> to also show IC and ICE trains. Note that B<--post> will be overridden by the standard efa options, such as B<--time>. +=item B<--version> + +Print version information + =back =head1 BUGS -- cgit v1.2.3