summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-05-01 12:43:48 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-05-01 12:43:58 +0200
commitdac47c3ac8b865c7dfd66b0f1929200408f7eda7 (patch)
tree1c188db0f3d74148eb4c1affb82af9a97aacc060 /bin
parenta8ac281ed97916befb2d4126284206adf088410a (diff)
efa: Added alternative "efa city stop city stop" invocation
Diffstat (limited to 'bin')
-rwxr-xr-xbin/efa12
1 files changed, 11 insertions, 1 deletions
diff --git a/bin/efa b/bin/efa
index 29ab634..ca54b18 100755
--- a/bin/efa
+++ b/bin/efa
@@ -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