From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Thu, 4 Sep 2014 16:26:30 -0400
Subject: Make help output help2man-friendly

---
 bin/php-parse.php | 21 ++++++++-------------
 1 file changed, 8 insertions(+), 13 deletions(-)

diff --git a/bin/php-parse.php b/bin/php-parse.php
index 578e5f7..c62837b 100644
--- a/bin/php-parse.php
+++ b/bin/php-parse.php
@@ -71,24 +71,19 @@ foreach ($files as $file) {
 function showHelp($error) {
     die($error . "\n\n" .
         <<<OUTPUT
-Usage:
-
-    php-parse [operations] file1.php [file2.php ...]
-
-The file arguments can also be replaced with a code string:
-
-    php-parse [operations] "<?php code"
+Usage: php-parse [operations] file1.php [file2.php ...]
+   or: php-parse [operations] "<?php code"
+Turn PHP source code into an abstract syntax tree.
 
 Operations is a list of the following options (--dump by default):
 
-    --dump           -d  Dump nodes using NodeDumper
-    --pretty-print   -p  Pretty print file using PrettyPrinter\Standard
-    --serialize-xml      Serialize nodes using Serializer\XML
-    --var-dump           var_dump() nodes (for exact structure)
-    --resolve-names  -N  Resolve names using NodeVisitor\NameResolver
+    -d, --dump           Dump nodes using NodeDumper
+    -p, --pretty-print   Pretty print file using PrettyPrinter\Standard
+        --serialize-xml  Serialize nodes using Serializer\XML
+        --var-dump       var_dump() nodes (for exact structure)
+    -N, --resolve-names  Resolve names using NodeVisitor\NameResolver
 
 Example:
-
     php-parse -d -p -N -d file.php
 
     Dumps nodes, pretty prints them, then resolves names and dumps them again.
