MooseX::Getopt::Usage::Pod::Text - pod2text duties for MooseX::Getopt::Usage.
use MooseX::Getopt::Usage::Pod::Text; my $parser = MooseX::Getopt::Usage::Pod::Text->new(); my $out; $parser->output_string(\$out); $parser->parse_string_document($pod); say $out;
A subclass of Pod::Text to tweak the output to make a nice usage message. Does the following.
Override constructor to add our own headings and opt_indent options.
headings
opt_indent
Lower casing and colon. Strip headings.
Change SYNOPSIS to USAGE.
MooseX::Getopt::Usage, MooseX::Getopt::Usage::Formatter, perl.
All complex software has bugs lurking in it, and this module is no exception. See "BUGS" in MooseX::Getopt::Usage for details of how to report bugs.
Thanks to Pod::Usage for the lower casing headings regexp. Based on Russ Allbery's Pod::Text:Color prototype code.
Mark Pitchless, <markpitchless at gmail.com>
<markpitchless at gmail.com>
Copyright 2012 Mark Pitchless
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install MooseX::Getopt::Usage, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MooseX::Getopt::Usage
CPAN shell
perl -MCPAN -e shell install MooseX::Getopt::Usage
For more information on module installation, please visit the detailed CPAN module installation guide.