doc/check_namespace.php 1 location
|
@@ 137-143 (lines=7) @@
|
| 134 |
|
* |
| 135 |
|
* @param string $error =null |
| 136 |
|
*/ |
| 137 |
|
function usage($error=null) |
| 138 |
|
{ |
| 139 |
|
global $prog; |
| 140 |
|
echo "Usage: $prog [-h|--help] file or dir\n\n"; |
| 141 |
|
if ($error) echo $error."\n\n"; |
| 142 |
|
exit($error ? 1 : 0); |
| 143 |
|
} |
| 144 |
|
|
| 145 |
|
$args = $_SERVER['argv']; |
| 146 |
|
$prog = basename(array_shift($args)); |
doc/fix_api.php 1 location
|
@@ 277-283 (lines=7) @@
|
| 274 |
|
* |
| 275 |
|
* @param string $error =null |
| 276 |
|
*/ |
| 277 |
|
function usage($error=null) |
| 278 |
|
{ |
| 279 |
|
global $prog; |
| 280 |
|
echo "Usage: $prog [-h|--help] [-d|--dry-run] file(s) or dir(s)\n\n"; |
| 281 |
|
if ($error) echo $error."\n\n"; |
| 282 |
|
exit($error ? 1 : 0); |
| 283 |
|
} |
| 284 |
|
|
| 285 |
|
$args = $_SERVER['argv']; |
| 286 |
|
$prog = basename(array_shift($args)); |
doc/fix_depricated.php 1 location
|
@@ 179-185 (lines=7) @@
|
| 176 |
|
* |
| 177 |
|
* @param string $error=null |
| 178 |
|
*/ |
| 179 |
|
function usage($error=null) |
| 180 |
|
{ |
| 181 |
|
global $prog; |
| 182 |
|
echo "Usage: $prog [--replace] [-h|--help] file or dir\n\n"; |
| 183 |
|
if ($error) echo $error."\n\n"; |
| 184 |
|
exit($error ? 1 : 0); |
| 185 |
|
} |
| 186 |
|
|
| 187 |
|
$args = $_SERVER['argv']; |
| 188 |
|
$prog = basename(array_shift($args)); |
install-cli.php 1 location
|
@@ 88-98 (lines=11) @@
|
| 85 |
|
|
| 86 |
|
if (!$run_git && count($argv) > 1) usage("Too many arguments!"); |
| 87 |
|
|
| 88 |
|
function usage($err=null) |
| 89 |
|
{ |
| 90 |
|
global $cmd; |
| 91 |
|
|
| 92 |
|
if ($err) |
| 93 |
|
{ |
| 94 |
|
echo "$err\n\n"; |
| 95 |
|
} |
| 96 |
|
die("Usage:\t$cmd [-v|--verbose] [--use-prerelease] (master|bugfix|release|<branch>|<tag>)\n". |
| 97 |
|
"\t$cmd --git <arguments>\t runs git with given arguments in all app-dirs, e.g. tag -a 17.1.20190214 -m 'tagging release'\n"); |
| 98 |
|
} |
| 99 |
|
|
| 100 |
|
$bins = array( |
| 101 |
|
'php' => PHP_BINARY, |