diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-05-01 12:43:48 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-05-01 12:43:58 +0200 |
commit | dac47c3ac8b865c7dfd66b0f1929200408f7eda7 (patch) | |
tree | 1c188db0f3d74148eb4c1affb82af9a97aacc060 /bin | |
parent | a8ac281ed97916befb2d4126284206adf088410a (diff) |
efa: Added alternative "efa city stop city stop" invocation
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/efa | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -109,6 +109,10 @@ GetOptions( 'via=s{2}' => \@via, ); +unless (@from and @to) { + (@from[0,1], @to[0,1]) = @ARGV; +} + unless (@to == 2 and @from == 2) { print STDERR "Usage: efa --from <city> <stop> --to <city> <stop> [other options]\n"; exit(1); @@ -197,7 +201,13 @@ efa - unofficial efa.vrr.de command line client =head1 SYNOPSIS -B<efa> B<--from> I<city> I<stop> B<--to> I<city> I<stop> [ I<additional options> ] +=over + +=item B<efa> B<--from> I<city> I<stop> B<--to> I<city> I<stop> [ I<additional options> ] + +=item B<efa> [ I<options> ] I<from-city> I<from-stop> I<to-city> I<to-stop> + +=back =head1 DESCRIPTION |