summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2014-01-03 12:20:53 +0100
committerDaniel Friesel <derf@finalrewind.org>2014-01-03 12:20:53 +0100
commita88abfec0080fdb4ade8db22b8660968d785c546 (patch)
tree071528676805893ddcdd8d0dbfbc7d48f868ca30 /bin
parent99f02d2de7a20c19eb39e200d9d355da955575cd (diff)
aseag-m: document exit codes
Diffstat (limited to 'bin')
-rwxr-xr-xbin/aseag-m8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/aseag-m b/bin/aseag-m
index 843446e..757a794 100755
--- a/bin/aseag-m
+++ b/bin/aseag-m
@@ -101,7 +101,7 @@ sub get_exact_stop_name {
if ( @stops == 0 ) {
say STDERR "No stops match '$fuzzy_name'";
- exit(1);
+ exit(3);
}
elsif ( @stops == 1 ) {
return $stops[0];
@@ -110,7 +110,7 @@ sub get_exact_stop_name {
say STDERR "The stop '$fuzzy_name' is ambiguous. Please choose one "
. 'of the following:';
say STDERR join( "\n", @stops );
- exit(1);
+ exit(3);
}
}
@@ -270,7 +270,9 @@ Show version information.
=head1 EXIT STATUS
-Zero.
+Normally zero. B<1> means B<aseag-m> was called with invalid options,
+B<2> indicates a request error from Travel::Status::DE::EFA(3pm),
+B<3> a bad (unknown or ambiguous) I<stop> name.
=head1 CONFIGURATION