File: 0003-Update-help-to-match-command-in-PATH.patch

package info (click to toggle)
php-parser 1.4.1-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,028 kB
  • ctags: 3,027
  • sloc: php: 10,458; makefile: 23
file content (33 lines) | stat: -rw-r--r-- 1,172 bytes parent folder | download
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
33
From: =?utf-8?q?David_Pr=C3=A9vot?= <taffit@debian.org>
Date: Thu, 4 Sep 2014 15:57:22 -0400
Subject: Update help to match command in PATH

Forwarded: not-needed
---
 bin/php-parse.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bin/php-parse.php b/bin/php-parse.php
index ac2600f..d6a1685 100755
--- a/bin/php-parse.php
+++ b/bin/php-parse.php
@@ -84,8 +84,8 @@ foreach ($files as $file) {
 function showHelp($error) {
     die($error . "\n\n" .
         <<<OUTPUT
-Usage: php php-parse.php [operations] file1.php [file2.php ...]
-   or: php php-parse.php [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):
@@ -98,7 +98,7 @@ Operations is a list of the following options (--dump by default):
     -c, --with-column-info  Show column-numbers for errors (if available)
 
 Example:
-    php php-parse.php -d -p -N -d file.php
+    php-parse -d -p -N -d file.php
 
     Dumps nodes, pretty prints them, then resolves names and dumps them again.