summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-04-04 18:32:41 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-04-04 18:32:41 +0200
commit7ee990debb0a75c45c02a82b1fdf34691f945da4 (patch)
tree204c56e66b10d32506382bf61d8ae05028964937 /bin
parent7720f8afa0952301399ace25a0afc099ae27b0c1 (diff)
Some restructuring
Diffstat (limited to 'bin')
-rwxr-xr-xbin/efa22
1 files changed, 11 insertions, 11 deletions
diff --git a/bin/efa b/bin/efa
index 0d57441..be2b29c 100755
--- a/bin/efa
+++ b/bin/efa
@@ -32,16 +32,16 @@ $post{type_origin} = 'stop';
$post{type_destination} = 'stop';
GetOptions(
- 'from=s{2}' => \@from,
- 'to=s{2}' => \@to,
- 'via=s{2}' => \@via,
- 'time=s' => \$time,
- 'depart=s' => \$time_depart,
'arrive=s' => \$time_arrive,
'date=s' => \$date,
'debug' => \$debug,
+ 'depart=s' => \$time_depart,
+ 'from=s{2}' => \@from,
'post=s' => \%post,
'restrict=s' => \$restrict,
+ 'time=s' => \$time,
+ 'to=s{2}' => \@to,
+ 'via=s{2}' => \@via,
);
unless (@to == 2 and @from == 2) {
@@ -180,11 +180,6 @@ Arrival place
Travel via this place
-=item B<--debug>
-
-Display debug information (additional post requests sent to the site,
-raw items received from the site)
-
=item B<--time>|B<--depart> I<hh>:I<mm>
Journey start time
@@ -212,12 +207,17 @@ method if you're not travelling long distance
All trains exctep ICE
-=item * ICE
+=item * ice
All trains
=back
+=item B<--debug>
+
+Display debug information (additional post requests sent to the site,
+raw items received from the site)
+
=item B<--post> I<key>=I<value>
Add I<key> with I<value> to the HTTP POST request sent to the EFA server.