From b0ecd4e9f73aa7d10b5dc53af9187b5cafb3b31c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 16 Mar 2009 18:51:32 +0100 Subject: efa: Added --post to add any values to the HTTP POST request --- bin/efa | 9 +++++++++ provides/zsh/completions/_efa | 1 + 2 files changed, 10 insertions(+) diff --git a/bin/efa b/bin/efa index 4b2e4ca..6c47f64 100755 --- a/bin/efa +++ b/bin/efa @@ -38,6 +38,7 @@ GetOptions( 'date=s' => \$date, 'debug' => \$debug, 'time-for=s' => \$time_for, + 'post=s' => \%post, ); unless (@to == 2 and @from == 2) { @@ -172,4 +173,12 @@ Define whether the time means time of departure (default) or time of arrival Journey date +=item B<--post> I=I + +Add I with I to the HTTP POST request sent to the EFA server. +This can be used to use setting B does not yet cover, like +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>. + =back diff --git a/provides/zsh/completions/_efa b/provides/zsh/completions/_efa index a07c978..096e928 100644 --- a/provides/zsh/completions/_efa +++ b/provides/zsh/completions/_efa @@ -8,6 +8,7 @@ arguments=( '--time:time' '--time-for:event:(arrival departure)' '--date:date' + '*--post:POST key=value' ) _arguments -s $arguments -- cgit v1.2.3