NAME

podtidy - a reformatting Pod Processor

SYNOPSIS

podtidy [--inplace] [--nobackup] [--recursive] [--verbose]
        {[--Ignore <pattern>]} [<filelist>]
podtidy [--help|-h|-?]

DESCRIPTION

This program processes a Pod document and attempts to tidy it's formatting. Currently this is limited to redoing the line breaks in text Pod paragraphs but it is hoped that more features will be added in the future.

USAGE

The default behavior of podtidy is to read in a list of filenames and to write the reformatted contents of these files to the STDOUT. If no file list is provided input is read from STDIN. The --inplace flag causes a backup of the input file to be made and the original file to overwritten with a reformatted version. It should be noted that only files that are actually having there format changed will to written to. When --inplace is combined with --nobackup the backup of the original file is omitted. If <--recursive> is specified then any directory names in <filelist> will be recursively expanded. File and directories may be explicitly omitted from processing by using the --Ignore option and specifying a Perl5 compatible regex. Multiple --Ignore options may be specified. Lastly, the --verbose flag enables additional warnings and error messages.

OPTIONS

  • --Ignore|I <pattern>

    Causes files and directories matching <pattern > to be omitted from processing. Where <patter > is a Perl5 compatible regex. Multiple --Ignore options may be specified.

    This flag is optional.

  • --inplace|i

    Make a backup of the original file and overwrite it with a reformatted version. The backup file will have the same name as the original file with a ~ appended to it. This operation only applies to files that are having changes made to their formatting. Unmodified files will be skipped and no backup file will be created. perltidy guarantees to not change a file's mtime if no formatting changes need to be made.

    This flag is optional.

  • --nobackup|-n

    When making an inplace reformatting, omit the backup file.

    This flag is optional. This flag is only valid in combination with --inplace.

  • --recursive|-r

    Recursively expand any directories included in <filelist>.

    This flag is optional.

  • --verbose|-v

    Enable additional warnings and error messages that will be sent to STDERR.

    This flag is optional.

  • <filelist>

    This is a list of filenames and/or directories if --recursive is specified. If it is omitted input will be read from STDIN.

    This list is optional.

  • --help|-h|-?

    Print usage info to STDERR and exit.

    This flag is optional.

CREDITS

Just me, myself, and I.

SUPPORT

Please contact the author directly via e-mail.

AUTHOR

Joshua Hoblitt <jhoblitt@cpan.org>

COPYRIGHT

Copyright (c) 2005 Joshua Hoblitt. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

The full text of the licenses can be found in the LICENSE file included with this module, or in perlartistic and perlgpl Pods as supplied with Perl 5.8.1 and later.

SEE ALSO

Pod::Tidy, Pod::Wrap::Pretty, Pod::Wrap, Perl::Tidy