Neos\Flow\Cli\RequestBuilder::extractArgumentNameFromCommandLinePart PHP Méthode

extractArgumentNameFromCommandLinePart() protected méthode

Extracts the option or argument name from the name / value pair of a command line.
protected extractArgumentNameFromCommandLinePart ( string $commandLinePart ) : string
$commandLinePart string Part of the command line, e.g. "my-important-option=SomeInterestingValue"
Résultat string The lowercased argument name, e.g. "myimportantoption"
    protected function extractArgumentNameFromCommandLinePart($commandLinePart)
    {
        $nameAndValue = explode('=', $commandLinePart, 2);
        return strtolower(str_replace('-', '', $nameAndValue[0]));
    }