|
@@ 167-170 (lines=4) @@
|
| 164 |
|
$result = array ('cmd' => $cmd); |
| 165 |
|
$option_switch=substr($cmd, 2); |
| 166 |
|
|
| 167 |
|
if (strpos($option_switch,'=') !== false) { |
| 168 |
|
$result['value'] = substr($option_switch, strpos($option_switch, "=")+1); |
| 169 |
|
$option_switch=substr($option_switch,0,strpos($option_switch, "=")); |
| 170 |
|
} |
| 171 |
|
|
| 172 |
|
if (strpos($option_switch,"-")!==false) { |
| 173 |
|
$result['subswitch'] = substr($option_switch, strpos($option_switch,"-")+1); |
|
@@ 172-175 (lines=4) @@
|
| 169 |
|
$option_switch=substr($option_switch,0,strpos($option_switch, "=")); |
| 170 |
|
} |
| 171 |
|
|
| 172 |
|
if (strpos($option_switch,"-")!==false) { |
| 173 |
|
$result['subswitch'] = substr($option_switch, strpos($option_switch,"-")+1); |
| 174 |
|
$option_switch=substr($option_switch, 0, strpos($option_switch,"-")); |
| 175 |
|
} |
| 176 |
|
$result['switch'] = $option_switch; |
| 177 |
|
} |
| 178 |
|
return $result; |