734417
From 9b9923c633797a232ac871903c3c14833036aa28 Mon Sep 17 00:00:00 2001
734417
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
734417
Date: Sun, 9 Jun 2013 14:14:24 -0400
734417
Subject: [PATCH] Synchronize pod2html usage output and its POD text
734417
734417
734417
Petr Pisar: Port to perl-5.16.3.
734417
734417
diff --git a/ext/Pod-Html/bin/pod2html b/ext/Pod-Html/bin/pod2html
734417
index c422ebf..b022859 100644
734417
--- a/ext/Pod-Html/bin/pod2html
734417
+++ b/ext/Pod-Html/bin/pod2html
734417
@@ -6,10 +6,14 @@ pod2html - convert .pod files to .html files
734417
 
734417
 =head1 SYNOPSIS
734417
 
734417
-    pod2html --help --htmlroot=<name> --infile=<name> --outfile=<name>
734417
+    pod2html --help --htmldir=<name> --htmlroot=<URL>
734417
+             --infile=<name> --outfile=<name>
734417
              --podpath=<name>:...:<name> --podroot=<name>
734417
-             --recurse --norecurse --verbose
734417
-             --index --noindex --title=<name>
734417
+             --cachedir=<name> --flush --recurse --norecurse
734417
+             --quiet --noquiet --verbose --noverbose
734417
+             --index --noindex --backlink --nobacklink
734417
+             --header --noheader --poderrors --nopoderrors
734417
+             --css=<URL> --title=<name>
734417
 
734417
 =head1 DESCRIPTION
734417
 
734417
@@ -27,12 +31,27 @@ pod2html takes the following arguments:
734417
 
734417
 Displays the usage message.
734417
 
734417
+=item htmldir
734417
+
734417
+  --htmldir=name
734417
+
734417
+Sets the directory to which all cross references in the resulting HTML file
734417
+will be relative. Not passing this causes all links to be absolute since this
734417
+is the value that tells Pod::Html the root of the documentation tree.
734417
+
734417
+Do not use this and --htmlroot in the same call to pod2html; they are mutually
734417
+exclusive.
734417
+
734417
 =item htmlroot
734417
 
734417
-  --htmlroot=name
734417
+  --htmlroot=URL
734417
+
734417
+Sets the base URL for the HTML files.  When cross-references are made, the
734417
+HTML root is prepended to the URL.
734417
+
734417
+Do not use this if relative links are desired: use --htmldir instead.
734417
 
734417
-Sets the base URL for the HTML files.  When cross-references are made,
734417
-the HTML root is prepended to the URL.
734417
+Do not pass both this and --htmldir to pod2html; they are mutually exclusive.
734417
 
734417
 =item infile
734417
 
734417
@@ -61,6 +80,59 @@ Specify the base directory for finding library pods.
734417
 Specify which subdirectories of the podroot contain pod files whose
734417
 HTML converted forms can be linked-to in cross-references.
734417
 
734417
+=item cachedir
734417
+
734417
+  --cachedir=name
734417
+
734417
+Specify which directory is used for storing cache. Default directory is the
734417
+current working directory.
734417
+
734417
+=item flush
734417
+
734417
+  --flush
734417
+
734417
+Flush the cache.
734417
+
734417
+=item backlink
734417
+
734417
+  --backlink
734417
+
734417
+Turn =head1 directives into links pointing to the top of the HTML file.
734417
+
734417
+=item nobacklink
734417
+
734417
+  --nobacklink
734417
+
734417
+Do not turn =head1 directives into links pointing to the top of the HTML file
734417
+(default behaviour).
734417
+
734417
+=item header
734417
+
734417
+  --header
734417
+
734417
+Create header and footer blocks containing the text of the "NAME" section.
734417
+
734417
+=item noheader
734417
+
734417
+  --noheader
734417
+
734417
+Do not create header and footer blocks containing the text of the "NAME"
734417
+section (default behaviour).
734417
+
734417
+=item poderrors
734417
+
734417
+  --poderrors
734417
+
734417
+Include a "POD ERRORS" section in the outfile if there were any POD errors in
734417
+the infile (default behaviour).
734417
+
734417
+=item nopoderrors
734417
+
734417
+  --nopoderrors
734417
+
734417
+Do not include a "POD ERRORS" section in the outfile if there were any POD
734417
+errors in the infile.
734417
+
734417
 =item index
734417
 
734417
   --index
734417
@@ -86,18 +158,44 @@ Recurse into subdirectories specified in podpath (default behaviour).
734417
 
734417
 Do not recurse into subdirectories specified in podpath.
734417
 
734417
+=item css
734417
+
734417
+  --css=URL
734417
+
734417
+Specify the URL of cascading style sheet to link from resulting HTML file.
734417
+Default is none style sheet.
734417
+
734417
 =item title
734417
 
734417
   --title=title
734417
 
734417
 Specify the title of the resulting HTML file.
734417
 
734417
+=item quiet
734417
+
734417
+  --quiet
734417
+
734417
+Don't display mostly harmless warning messages.
734417
+
734417
+=item noquiet
734417
+
734417
+  --noquiet
734417
+
734417
+Display mostly harmless warning messages (default behaviour). But this is not
734417
+the same as "verbose" mode.
734417
+
734417
 =item verbose
734417
 
734417
   --verbose
734417
 
734417
 Display progress messages.
734417
 
734417
+=item noverbose
734417
+
734417
+  --noverbose
734417
+
734417
+Do not display progress messages (default behaviour).
734417
+
734417
 =back
734417
 
734417
 =head1 AUTHOR
734417
diff --git a/ext/Pod-Html/lib/Pod/Html.pm b/ext/Pod-Html/lib/Pod/Html.pm
734417
index 72b37c2..3feb812 100644
734417
--- a/ext/Pod-Html/lib/Pod/Html.pm
734417
+++ b/ext/Pod-Html/lib/Pod/Html.pm
734417
@@ -447,9 +447,14 @@ sub usage {
734417
     my $podfile = shift;
734417
     warn "$0: $podfile: @_\n" if @_;
734417
     die <
734417
-Usage:  $0 --help --htmlroot=<name> --infile=<name> --outfile=<name>
734417
-           --podpath=<name>:...:<name> --podroot=<name> --cachedir=<name>
734417
-           --recurse --verbose --index --norecurse --noindex
734417
+Usage:  $0 --help --htmldir=<name> --htmlroot=<URL>
734417
+           --infile=<name> --outfile=<name>
734417
+           --podpath=<name>:...:<name> --podroot=<name>
734417
+           --cachedir=<name> --flush --recurse --norecurse
734417
+           --quiet --noquiet --verbose --noverbose
734417
+           --index --noindex --backlink --nobacklink
734417
+           --header --noheader --poderrors --nopoderrors
734417
+           --css=<URL> --title=<name>
734417
 
734417
   --[no]backlink  - turn =head1 directives into links pointing to the top of
734417
                       the page (off by default).
734417
-- 
734417
1.8.1.4
734417