From: Mark-Jason Dominus Date: Fri, 23 Nov 2007 09:54:38 +0000 (-0500) Subject: document return value of Getopt::Std::getopts() X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f4b3c303600e3a7579627986f784c3ec9367abb3;p=p5sagit%2Fp5-mst-13.2.git document return value of Getopt::Std::getopts() Message-ID: <20071123145438.6593.qmail@plover.com> p4raw-id: //depot/perl@32466 --- diff --git a/lib/Getopt/Std.pm b/lib/Getopt/Std.pm index 99f9359..c13d7f6 100644 --- a/lib/Getopt/Std.pm +++ b/lib/Getopt/Std.pm @@ -28,6 +28,7 @@ there is a space between the switch and the argument. The getopts() function is similar, but you should pass to it the list of all switches to be recognized. If unspecified switches are found on the command-line, the user will be warned that an unknown option was given. +The getopts() function returns true unless an invalid option was found. Note that, if your code is running under the recommended C pragma, you will need to declare these package variables