From 771c6826d2207f24745b5fc57cf341e46a393635 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Fri, 11 Oct 2024 19:01:27 +0200 Subject: hafas-m(1): annotate mode-specific options --- bin/hafas-m | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/bin/hafas-m b/bin/hafas-m index 4c0778f..1858ac7 100755 --- a/bin/hafas-m +++ b/bin/hafas-m @@ -723,7 +723,9 @@ version 6.10 hafas-m is an interface to HAFAS public transport services such as the one operated by Deutsche Bahn. -It has four operating modes that depend on the contents of its argument. +It can serve as an arrival/departure monitor, request details about a specific +trip/journey, and look up public transport stops by name or geolocation. +The operating mode depends on the contents of its non-option argument. =head2 Arrival/Departure Monitor (I) @@ -765,8 +767,9 @@ Otherwise, list all journey IDs that match I. =head2 Trip Details (I) -List intermediate stops of I with arrival/departure time, delay (if -available), occupancy (if available), and stop name. Also includes +List intermediate stops of I (as given by arrival/departure monitor +mode when invoked with B<-j>, B<--with-jid>) with arrival/departure time, delay +(if available), occupancy (if available), and stop name. Also includes line/journey, operator, and heading information. Times are reported in the selected HAFAS service's default time zone (typically @@ -774,9 +777,12 @@ Europe/Berlin). If a stop's local time differs, it is also provided. =head1 OPTIONS +Values in brackets indicate options that only apply to the indicated operating +mode(s). + =over -=item B<-a>, B<--arrivals> +=item B<-a>, B<--arrivals> (monitor) Show arrivals instead of departures, including trains ending at the specified station. Note that this causes the output to display the start instead of @@ -784,9 +790,9 @@ the end station. =item B<-d>, B<--date> I
.I.[I] -Date to list departures for. Default: today. +Request date. Default: today. -=item B<-j>, B<--with-jid> +=item B<-j>, B<--with-jid> (monitor) Show journey IDs in arrival/departure board. These can be used to obtain details on individual journeys with subsequent B invocations. @@ -808,7 +814,7 @@ Note that requesting an invalid/unsupported language may lead to garbage output. List known HAFAS instances and exit. Use B<-s>|B<--service> to select a service from this list for a HAFAS request. -=item B<-m>, B<--mot> I +=item B<-m>, B<--mot> I (monitor) By default, B shows all modes of transport arriving/departing at the specified station. With I, it is possible to either exclude a list of @@ -820,7 +826,7 @@ To show them exclusively, set I to I,I,... The I types depend on the used service. Use C<< -m help >> to list them. -=item B<-n>, B<--num-results> I +=item B<-n>, B<--num-results> I (monitor) Request up to I results. Default: 30. @@ -841,12 +847,12 @@ Useful for debugging and development purposes. Request arrivals/departures using the API provided by I, defaults to DB (Deutsche Bahn). See B<--list> for a list of known services. -=item B<-t>, B<--time> I:I +=item B<-t>, B<--time> I:I (monitor) -Time to list departures for. Must be specified in the selected HAFAS -service's default time zone, see B<--list>. Default: now. +Request time. Must be specified in the selected HAFAS service's default time +zone, see B<--list>. Default: now. -=item B<-v>, B<--via> I|I,I,... +=item B<-v>, B<--via> I|I,I,... (monitor) Only show departures that pass by I (or arivals that have passed by I). If I is given as a list of numeric EVA IDs, only -- cgit v1.2.3