document return value of Getopt::Std::getopts()
authorMark-Jason Dominus <mjd@plover.com>
Fri, 23 Nov 2007 09:54:38 +0000 (04:54 -0500)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Fri, 23 Nov 2007 15:00:57 +0000 (15:00 +0000)
Message-ID: <20071123145438.6593.qmail@plover.com>

p4raw-id: //depot/perl@32466

lib/Getopt/Std.pm

index 99f9359..c13d7f6 100644 (file)
@@ -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<use strict
 'vars'> pragma, you will need to declare these package variables