Skip Menu |

This queue is for tickets about the Pod-Parser CPAN distribution.

Report information
The Basics
Id: 41135
Status: resolved
Worked: 20 min
Priority: 0/
Queue: Pod-Parser

People
Owner: Marek.Rouchal [...] gmx.net
Requestors: djerius [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.35
Fixed in: 1.36



Subject: Pod::Usage ignores subsections (e.g. =head2, -head3) w/ verbosity=1
If the "OPTIONS AND ARGUMENTS" section contains subsections, they are not output. For example, running pod2usage --verbose 1 test.pod on the attached file results in Options and Arguments: rather than the expected result of printing everything. For complex programs this is a real problem, as it is useful to group the options into separate sections to provide context for the user. Thanks, Diab
Subject: test.pod
=head1 OPTIONS AND ARGUMENTS =head2 Arguments The required arguments (which typically follow any options on the command line) are: =over =item I<destination> =item I<files> =back =head2 Options Options may be abbreviated. Options which take values may be separated from the values by whitespace or the "=" character.
Thanks for the suggestion. I extended the RX to match subsections in OPTIONS and ARGUMENTS too with pod2usage(-verbose => 1). Will be included in Pod-Parser-1.36 -Marek