mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-11-30 04:19:30 +01:00
Drop superfluous newlines before help text
This commit is contained in:
parent
d1dd9f5aec
commit
82bb6627c9
@ -86,9 +86,11 @@ foreach ($files as $file) {
|
||||
}
|
||||
}
|
||||
|
||||
function showHelp($error) {
|
||||
die($error . "\n\n" .
|
||||
<<<OUTPUT
|
||||
function showHelp($error = '') {
|
||||
if ($error) {
|
||||
echo $error . "\n\n";
|
||||
}
|
||||
die(<<<OUTPUT
|
||||
Usage: php-parse [operations] file1.php [file2.php ...]
|
||||
or: php-parse [operations] "<?php code"
|
||||
Turn PHP source code into an abstract syntax tree.
|
||||
@ -153,7 +155,7 @@ function parseArgs($args) {
|
||||
break;
|
||||
case '--help':
|
||||
case '-h';
|
||||
showHelp('');
|
||||
showHelp();
|
||||
break;
|
||||
case '--':
|
||||
$parseOptions = false;
|
||||
|
Loading…
Reference in New Issue
Block a user