correctly detect default short options
This commit is contained in:
parent
de033bce88
commit
010d168aaa
@ -91,22 +91,22 @@ foreach ($options as $option) {
|
|||||||
|
|
||||||
switch ($option[0]) {
|
switch ($option[0]) {
|
||||||
case '--server':
|
case '--server':
|
||||||
case '-s':
|
case 's':
|
||||||
$server = $option[1];
|
$server = $option[1];
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case '--path':
|
case '--path':
|
||||||
case '-p':
|
case 'p':
|
||||||
$path = $option[1];
|
$path = $option[1];
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case '--conf':
|
case '--conf':
|
||||||
case '-c':
|
case 'c':
|
||||||
$conffile = $option[1];
|
$conffile = $option[1];
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case '--help':
|
case '--help':
|
||||||
case '-h':
|
case 'h':
|
||||||
show_help();
|
show_help();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user