MCPcopy Create free account
hub / github.com/baidu/openrasp / addShortOption

Method addShortOption

rasp-install/php/install.php:336–352  ·  view source on GitHub ↗

only support one by one

($key, $type)

Source from the content-addressed store, hash-verified

334
335 //only support one by one
336 public function addShortOption($key, $type)
337 {
338 if (is_string($key) && strlen($key) == 1) {
339 switch ($type) {
340 case self::OPTIONAL:
341 array_push($this->shortOpts[self::OPTIONAL], $key);
342 break;
343 case self::REQUIRED:
344 array_push($this->shortOpts[self::REQUIRED], $key);
345 break;
346 case self::NOVALUE:
347 default:
348 array_push($this->shortOpts[self::NOVALUE], $key);
349 break;
350 }
351 }
352 }
353
354 public function addLongOption($key, $type)
355 {

Callers 1

install.phpFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected