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