Bug#641430: libgetopt-euclid-perl: 0.2.9 does not recognise options in a =head2 inside =head1 OPTIONS
gregor herrmann
gregoa at debian.org
Tue Sep 13 20:43:19 UTC 2011
tag 641430 + confirmed upstream
thanks
On Tue, 13 Sep 2011 13:27:01 +0100, Simon McVittie wrote:
> The cause seems to be a couple of =head2 headings inside the OPTIONS =head1:
>
> =head1 OPTIONS
>
> =head2 General behaviour
>
> You can customize the usage of mpd-dynamic with the following options:
>
> =over 4
>
> =item -o[ld] <old>
>
> Deleting the lines "=head2 General behaviour" and "=head2 Ratings" from
> the mpd-dynamic script works around this. I think Getopt::Euclid should
> really ignore those sub-headings, though.
Hm, this seems to be a deliberate change by upstream:
From Changes:
- Required and optional arguments can now be put in a POD head section =head2,
=head3 and =head4 for more flexibility
And from the code:
+ my $HEAD_START = qr{ ^=head[1-4] }xms;
...
- while ($man =~ m/^=head1 ($OPTIONS) (.*?) $EOHEAD /gxms) {
+ while ($man =~ m/$HEAD_START ($OPTIONS) (.*?) $HEAD_END /gxms) {
But I'm not sure if the side-effect that hits mpd-dynamic is also
done on purpose :)
Cheers,
gregor, forwarding the bug in a minute
--
.''`. Homepage: http://info.comodo.priv.at/ - PGP/GPG key ID: 0x8649AA06
: :' : Debian GNU/Linux user, admin, & developer - http://www.debian.org/
`. `' Member of VIBE!AT & SPI, fellow of Free Software Foundation Europe
`- NP: Die Quote: Nummer ans in Reykjavik
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20110913/fd643f2d/attachment.pgp>
More information about the pkg-perl-maintainers
mailing list