Skip Menu |

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

Report information
The Basics
Id: 33020
Status: resolved
Priority: 0/
Queue: Pod-Parser

People
Owner: Marek.Rouchal [...] gmx.net
Requestors: nigel.metheringham [...] Dev.intechnology.co.uk
Cc:
AdminCc:

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



Subject: Pod::Usage always uses SYNOPSIS section. Perl::Critic recommends USAGE section
Pod::Usage uses the SYNOPSIS section to get usage information. The Pre::Critic policy Perl::Critic::Policy::Documentation::RequirePodSections favours a USAGE section for scripts. Maybe a case could be made for making Pod::Usage able to take a parameter for the appropriate section and/or have a default of looking in both SYNOPSIS and USAGE.
Thanks for the input. Pod-Parser-1.36 will look for both SYNOPSIS and USAGE sections. No need to have both in one .pod or .pm - however I need to support both the traditional (manpage style) SYNOPSIS and the more modern USAGE as suggested by perlcritic. Section picking can be done by using -verbose => 99, -sections => 'USAGE' -Marek