From a88abfec0080fdb4ade8db22b8660968d785c546 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 3 Jan 2014 12:20:53 +0100 Subject: aseag-m: document exit codes --- bin/aseag-m | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'bin/aseag-m') 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 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 name. =head1 CONFIGURATION -- cgit v1.2.3