Skip to content
Snippets Groups Projects
Commit b0ecd4e9 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

efa: Added --post to add any values to the HTTP POST request

parent d0fe7368
No related branches found
No related tags found
No related merge requests found
......@@ -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<key>=I<value>
Add I<key> with I<value> to the HTTP POST request sent to the EFA server.
This can be used to use setting B<efa> 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
......@@ -8,6 +8,7 @@ arguments=(
'--time:time'
'--time-for:event:(arrival departure)'
'--date:date'
'*--post:POST key=value'
)
_arguments -s $arguments
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment