diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-01-13 20:25:07 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-01-13 20:25:07 +0100 |
commit | 44ec83526c359f58e9fd201d745f368a838a69a8 (patch) | |
tree | 2aa49a3e00c6e8dba25c03167aabb7f551cc0768 | |
parent | da30be22dc860896d45ec95c6b0d594802bcbe92 (diff) |
dbris-m: Add -m help; document -m
-rwxr-xr-x | bin/dbris-m | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/dbris-m b/bin/dbris-m index 7a14e30..d30e46a 100755 --- a/bin/dbris-m +++ b/bin/dbris-m @@ -145,6 +145,16 @@ if ( $date or $time ) { $opt{datetime} = $dt; } +if ( $mots and $mots eq 'help' ) { + say "Supported modes of transmit (-m / --modes-of-transit):"; + for my $mot ( + qw(ICE EC_IC IR REGIONAL SBAHN BUS SCHIFF UBAHN TRAM ANRUFPFLICHTIG)) + { + say $mot; + } + exit 0; +} + if ($mots) { $opt{modes_of_transit} = [ split( qr{, *}, $mots ) ]; } @@ -434,6 +444,11 @@ Print result(s) as JSON and exit. This is a dump of internal data structures and not guaranteed to remain stable between minor versions. Please use the Travel::Status::DE::DBRIS(3pm) module if you need a proper API. +=item B<-m>, B<--modes-of-transit> I<mot1>[,I<mot2>,...] + +Only return results for the specified modes of transit. +Use C<<-m help>> to get a list of supported modes of transit. + =item B<--no-cache> By default, if the Cache::File module is available, server replies are cached |