From 3e9b2274d543bdd1a385e91df9635691324c507a Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 15 Apr 2016 14:06:33 +0200 Subject: php-nikic-php-parser: 2.0.1 (new package) --- php-nikic-php-parser-pr269.patch | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 php-nikic-php-parser-pr269.patch (limited to 'php-nikic-php-parser-pr269.patch') diff --git a/php-nikic-php-parser-pr269.patch b/php-nikic-php-parser-pr269.patch new file mode 100644 index 0000000..03bc429 --- /dev/null +++ b/php-nikic-php-parser-pr269.patch @@ -0,0 +1,32 @@ +From 7fe074c38c7e7d5359e92d8ed43ed3a5cdf65266 Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Fri, 15 Apr 2016 13:58:42 +0200 +Subject: [PATCH] support -h and --help standard options + +--- + bin/php-parse | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/bin/php-parse b/bin/php-parse +index db6c411..f6ce166 100755 +--- a/bin/php-parse ++++ b/bin/php-parse +@@ -101,6 +101,7 @@ Operations is a list of the following options (--dump by default): + --var-dump var_dump() nodes (for exact structure) + -N, --resolve-names Resolve names using NodeVisitor\NameResolver + -c, --with-column-info Show column-numbers for errors (if available) ++ -h, --help Display this page + + Example: + php-parse -d -p -N -d file.php +@@ -150,6 +151,10 @@ function parseArgs($args) { + case '-c'; + $attributes['with-column-info'] = true; + break; ++ case '--help': ++ case '-h'; ++ showHelp(''); ++ break; + case '--': + $parseOptions = false; + break; -- cgit