From 6560d248393cde5fbff0451bcddb03435c4a7f08 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sat, 28 Oct 2023 23:16:16 +0200 Subject: hafas-m(1): Add warning for --json; exit status details --- bin/hafas-m | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'bin/hafas-m') diff --git a/bin/hafas-m b/bin/hafas-m index cbab230..7a683b7 100755 --- a/bin/hafas-m +++ b/bin/hafas-m @@ -438,12 +438,14 @@ Date to list departures for. Default: today. =item B<--json> -Print result(s) as JSON. +Print result(s) as JSON. This is a dump of internal data structures and not +guaranteed to remain stable between minor versions. Please use the +Travel::Status::DE::HAFAS(3pm) module if you need a proper API. =item B<--list> -List known HAFAS installations. A HAFAS service from this list can be querie -using B<--service>. +List known HAFAS installations and exit. Use B<-s>|B<--service> to select an +operator from this list for a HAFAS request. =item B<-m>, B<--mot> I @@ -468,13 +470,13 @@ Time to list departures for. Default: now. =item B<-V>, B<--version> -Show version information. +Show version information and exit. =back =head1 EXIT STATUS -Zero unless things went wrong. +0 upon success, 1 upon internal error, 2 upon backend error. =head1 CONFIGURATION @@ -492,7 +494,7 @@ None. =head1 BUGS AND LIMITATIONS -The non-default services (anything other than DB) are not well tested. +The non-default services (anything other than DB) are not well-tested. =head1 AUTHOR -- cgit v1.2.3