1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
|
add a man page to xmltidy
--- a/bin/xmltidy
+++ b/bin/xmltidy
@@ -14,3 +14,27 @@
use strict; use XML::Tidy;
my $flnm = shift() || die "USAGE: `$0 FileName.xml '<indent_string>'`\n";
my $tidy = XML::Tidy->new($flnm); $tidy->tidy(shift()); $tidy->write();
+
+=pod
+
+=head1 NAME
+
+xmltidy - tidy an XML document
+
+=cut
+
+=head1 SYNOPSIS
+
+xmltidy FileName.xml <indent_string>
+
+=cut
+
+=head1 DESCRIPTION
+
+The FileName is the file that will be tidied, and the optional
+indent_string is the string that should be inserted for each indent
+level, which defaults to two spaces.
+
+=cut
+
+
|