reformat commandline.inc
This commit is contained in:
parent
25c721f6ff
commit
7a0d33ab5f
@ -77,7 +77,7 @@ function show_help()
|
|||||||
global $helptext;
|
global $helptext;
|
||||||
|
|
||||||
$_default_help_text = <<<END_OF_DEFAULT
|
$_default_help_text = <<<END_OF_DEFAULT
|
||||||
General options:
|
General options:
|
||||||
|
|
||||||
-q --quiet Quiet (little output)
|
-q --quiet Quiet (little output)
|
||||||
-v --verbose Verbose (lots of output)
|
-v --verbose Verbose (lots of output)
|
||||||
@ -126,7 +126,7 @@ function have_option($opt, $alt=null)
|
|||||||
{
|
{
|
||||||
global $options;
|
global $options;
|
||||||
|
|
||||||
$matches = array($opt);
|
$matches = array();
|
||||||
|
|
||||||
if (strlen($opt) > 1 && 0 != strncmp($opt, '--', 2)) {
|
if (strlen($opt) > 1 && 0 != strncmp($opt, '--', 2)) {
|
||||||
$matches[] = '--'.$opt;
|
$matches[] = '--'.$opt;
|
||||||
|
Loading…
Reference in New Issue
Block a user