protected function parseArgument($arg)
    {
        $arg = ltrim($arg, '-');
        
        $key = $arg;
        $value = true;
        
        if (strpos($arg, '=') !== false) {
            $key = substr($arg, 0, strpos($arg, '='));
            $value = substr($arg, strpos($arg, '=') + 1);
        
            if (is_numeric($value)) {
                // Transform the value into the correct data type
                $value = $value * 1;
            }
        }
        
        return array($key, $value);
    }
protected function parseArgument($arg)
    {
        $arg = ltrim($arg, '-');
        
        $key = $arg;
        $value = true;
        
        if (strpos($arg, '=') !== false) {
            $key = substr($arg, 0, strpos($arg, '='));
            $value = substr($arg, strpos($arg, '=') + 1);
        
            if (is_numeric($value)) {
                // Transform the value into the correct data type
                $value = $value * 1;
            }
        }
        
        return array($key, $value);
    }
protected function parseArgument ( $ arg ) { $ arg = ltrim ( $ arg , '-' ) ; $ key = $ arg ; $ value = true ; if ( strpos ( $ arg , '=' ) !== false ) { $ key = substr ( $ arg , 0 , strpos ( $ arg , '=' ) ) ; $ value = substr ( $ arg , strpos ( $ arg , '=' ) + 1 ) ; if ( is_numeric ( $ value ) ) { // Transform the value into the correct data type $ value = $ value * 1 ; } } return array ( $ key , $ value ) ; }
Parses an argument and returns an array with key
and value.

@param string $arg
@return array
Parses an argument and returns an array with key and value .