summaryrefslogtreecommitdiff
path: root/bin/efa
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-05-15 19:59:01 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-05-15 19:59:01 +0200
commit87d8ac2815c581c2c336f74d324c1ca92316b14e (patch)
tree72de22f4c37c0d5aacb4cbcd229442fb93570f27 /bin/efa
parent3da8aff78d5d6e4645752f0e070eb2c7f44fc825 (diff)
efa: Added <from> <via> <to> invocation
Diffstat (limited to 'bin/efa')
-rwxr-xr-xbin/efa8
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/efa b/bin/efa
index cff35e9..6725a54 100755
--- a/bin/efa
+++ b/bin/efa
@@ -125,7 +125,11 @@ GetOptions(
);
unless (@from and @to) {
- (@from[0,1], @to[0,1]) = @ARGV;
+ if (@ARGV == 4) {
+ (@from[0,1], @to[0,1]) = @ARGV;
+ } elsif (@ARGV == 6) {
+ (@from[0,1], @via[0,1], @to[0,1]) = @ARGV;
+ }
}
unless (@to == 2 and @from == 2) {
@@ -225,7 +229,7 @@ efa - unofficial efa.vrr.de command line client
=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>
+=item B<efa> [ I<options> ] I<from-city> I<from-stop> [ I<via-city> I<via-stop> ] I<to-city> I<to-stop>
=back