Clarify documentation re switch expecting an argument but none is provided.
authorJames E Keenan <jkeenan@cpan.org>
Sun, 4 Aug 2013 02:30:42 +0000 (22:30 -0400)
committerJames E Keenan <jkeenan@cpan.org>
Wed, 7 Aug 2013 11:17:34 +0000 (07:17 -0400)
commit243ac78f8a172f346f09976891c458840877393b
tree856c40c941968bcfac9f9f1340f07205133987a8
parent7d36afc572642c9533c5b6d12a953031800f9def
Clarify documentation re switch expecting an argument but none is provided.

When a switch is expecting an argument but fails to be provided with one, the
value of the corresponding element in the options hash is set to the undefined
value.  The documentation did not make this clear.

The documentation for getopts() and getopt() has been revised and additional
tests have been provided to demonstrate the point.  Tweaked in response to
feedback from Karl Williamson++.

Also, unit tests found in lib/Getopt/Std.t actually for Getopt::Long have been
removed.  A patch holding those tests has been submitted to Getopt-Long's bug
queue on rt.cpan.org.

For: RT #41359
lib/Getopt/Std.pm
lib/Getopt/Std.t