From d35b36d0b81c12fbb828a59f2305e491306b9840 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 7 Oct 2015 11:31:08 +0200 Subject: update documentation --- bin/aseag-m | 43 +++++++++++++++++++++++++++++-------------- 1 file changed, 29 insertions(+), 14 deletions(-) diff --git a/bin/aseag-m b/bin/aseag-m index 4fc4c9b..22303a6 100755 --- a/bin/aseag-m +++ b/bin/aseag-m @@ -60,7 +60,8 @@ my $status = Travel::Status::DE::ASEAG->new; sub show_help { my ($code) = @_; - print "Usage: aseag-m [-abfprV] [-l ] [-v ] \n" + print 'Usage: aseag-m [-pV] [-o ] [-l ] [-v ] ' + . "\n" . "See also: man aseag-m\n"; exit $code; @@ -230,7 +231,8 @@ aseag-m - Unofficial interface to the ASEAG departure monitor =head1 SYNOPSIS -B [B<-abfprV>] [B<-l> I] [B<-s> I | B<-S> I] +B [B<-pV>] [B<-l> I] [B<-o> I] +[B<-s> I | B<-S> I] [B<-v> I] I =head1 VERSION @@ -245,34 +247,47 @@ B lists upcoming bus departures at the ASEAG stop I. =over -=item B<-a>, B<--route-after> +=item B<-l>, B<--line> I -For each departure, include the route leading to I. Both stop names and -departure times are shown. +Limit output to departures of I (comma-separated list of line +names, may be used multiple times). + +=item B<-o>, B<--output> I -=item B<-b>, B<--route-before> +Format output according to I. I is a +comma-separated list and the B<--output> option may be repeated. Each +output type has both a short and a long form, so for instance both +C<< -or,T >> and C<< --output=route_interesting,relative_times >> are valid. + +Valid output types are: + +=over + +=item a / route_after For each departure, include the route after I. Both stop names and departure times are shown. -=item B<-f>, B<--full-route> +=item b / route_before + +For each departure, include the route leading to I. Both stop names and +departure times are shown. + +=item f / route_full For each departure, include the entire route (stop names and departure times). -=item B<-l>, B<--line> I +=item T / relative_times -Limit output to departures of I (comma-separated list of line -names, may be used multiple times). +Show relative times. Applies to departure and route output. + +=back =item B<-p>, B<--with-past> Include past departures. Applies both to the departure output and to the route output of B<-a>, B<-b>, B<-f>. -=item B<-r>, B<--relative> - -Show relative times. Appleas both to departure and route output. - =item B<-s>, B<--strftime> I Format absolute times in I, applies both to departure and route -- cgit v1.2.3