mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 05:48:51 +00:00
[ticket/9805] Move check lower down.
PHPBB3-9805
This commit is contained in:
parent
e1ae8c6a71
commit
67fe441f7e
1 changed files with 7 additions and 6 deletions
|
@ -7,11 +7,6 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if ($argc < 2)
|
|
||||||
{
|
|
||||||
show_usage();
|
|
||||||
}
|
|
||||||
|
|
||||||
function show_usage()
|
function show_usage()
|
||||||
{
|
{
|
||||||
$filename = basename(__FILE__);
|
$filename = basename(__FILE__);
|
||||||
|
@ -40,7 +35,13 @@ function show_usage()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle arguments
|
// Handle arguments
|
||||||
$opts = getopt('s:u:r:m:d');
|
$opts = getopt('s:u:r:m:d');
|
||||||
|
|
||||||
|
if (empty($opts))
|
||||||
|
{
|
||||||
|
show_usage();
|
||||||
|
}
|
||||||
|
|
||||||
$scope = get_arg($opts, 's', '');
|
$scope = get_arg($opts, 's', '');
|
||||||
$username = get_arg($opts, 'u', 'phpbb');
|
$username = get_arg($opts, 'u', 'phpbb');
|
||||||
$repository = get_arg($opts, 'r', 'phpbb3');
|
$repository = get_arg($opts, 'r', 'phpbb3');
|
||||||
|
|
Loading…
Add table
Reference in a new issue