pod2usage

print usage messages from embedded pod docs in files

SYNOPSIS

Header "SYNOPSIS"

" pod2usage "12 Item "pod2usage" [ -help ] [ -man ] [ -exit exitval ] [ -output outfile ] [ -verbose level ] [ -pathlist dirlist ] [ -formatter module ] [ -utf8 ] file

OPTIONS AND ARGUMENTS

Header "OPTIONS AND ARGUMENTS"

" -help "8 Item "-help" Print a brief help message and exit.

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

" -exit exitval "8 Item "-exit exitval" The exit status value to return.

" -output outfile "8 Item "-output outfile" The output file to print to. If the special names (L" -(R" or (L">&1 (R" or (L">&STDOUT (R" are used then standard output is used. If (L">&2 (R" or (L">&STDERR (R" is used then standard error is used.

" -verbose level "8 Item "-verbose level" The desired level of verbosity to use: 3 1 : print SYNOPSIS only 2 : print SYNOPSIS sections and any OPTIONS/ARGUMENTS sections 3 : print the entire manpage (similar to running pod2text)

" -pathlist dirlist "8 Item "-pathlist dirlist" 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).

" -formatter module "8 Item "-formatter module" 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 "8 Item "-utf8" This option assumes that the formatter (see above) understands the option (L"utf8 (R". It turns on generation of utf8 output.

" file "8 Item "file" The pathname of a file containing pod documentation to be output in usage message format (defaults to standard input).

DESCRIPTION

Header "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 (L" pod2usage() (R" in Pod::Usage.

SEE ALSO

Header "SEE ALSO" Pod::Usage, pod2text(1)

AUTHOR

Header "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>

Copied to clipboard
free 100$ digital ocean credit