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