logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

pod2usage - print usage messages from embedded pod docs in files

Author

       Please report bugs using <http://rt.cpan.org>.

       Brad Appleton <bradapp@enteract.com>

       Based on code for pod2text(1) written by Tom Christiansen <tchrist@mox.perl.com>

perl v5.40.1                                       2025-04-14                                       POD2USAGE(1)

Description

pod2usage  will  read the given input file looking for pod documentation and will print the corresponding
       usage message.  If no input file is specified then standard input is read.

       pod2usage invokes the pod2usage()  function  in  the  Pod::Usage  module.  Please  see  "pod2usage()"  in
       Pod::Usage.

Name

       pod2usage - print usage messages from embedded pod docs in files

Options And Arguments

-help   Print a brief help message and exit.

       -man    Print this command's manual page and exit.

       -exitexitval
               The exit status value to return.

       -outputoutfile
               The output file to print to. If the special names "-"  or  ">&1"  or  ">&STDOUT"  are  used  then
               standard output is used. If ">&2" or ">&STDERR" is used then standard error is used.

       -verboselevel
               The desired level of verbosity to use:

                   1 : print SYNOPSIS only
                   2 : print SYNOPSIS sections and any OPTIONS/ARGUMENTS sections
                   3 : print the entire manpage (similar to running pod2text)

       -pathlistdirlist
               Specifies  one  or  more  directories to search for the input file if it was not supplied with an
               absolute path. Each directory path in the given list should be separated by a ':' on Unix (';' on
               MSWin32 and DOS).

       -formattermodule
               Which text formatter to use. Default is Pod::Text, or for very old Perl versions  Pod::PlainText.
               An alternative would be e.g.  Pod::Text::Termcap.

       -utf8   This  option  assumes  that  the formatter (see above) understands the option "utf8". It turns on
               generation of utf8 output.

       file    The pathname of a file containing pod documentation to be output  in  usage  message  format.  If
               omitted, standard input is read - but the output is then formatted with Pod::Text only - unless a
               specific formatter has been specified with -formatter.

See Also

       Pod::Usage, pod2text, Pod::Text, Pod::Text::Termcap, perldoc

Synopsis

pod2usage   [-help]   [-man]  [-exitexitval]  [-outputoutfile]  [-verboselevel]  [-pathlistdirlist]
                   [-formattermodule] [-utf8] file

See Also