Subject: | Documentation: -section argument should be -sections |
Pod-Parser-1.34
Pod-Usage-1.33
perl, v5.8.6 built for darwin-thread-multi-2level
Darwin Kernel Version 8.3.0 Power Macintosh powerpc
Tried using -section option to print just NAME and VERSION sections for use with a --version command line argument to my script:
pod2usage(-verbose => 99, -section => 'NAME|VERSION', -exitval=>$status{OK}) if $show_version;
Result was the entire POD was printed. I checked the source of Pod::Usage and saw that the name of the argument is really -sections (plural) and not -section (singular).
So I tried the same with -sectiosn:
pod2usage(-verbose => 99, -sections => 'NAME|VERSION', -exitval=>$status{OK}) if $show_version;
And still the entire POD was printed. So the first thing to fix is the documentation, but beyond that if there's not a bug in the code then please provide an example of how to use the -sections argument in the documentation. It shouldn't be so difficult.
Thanks