/** * get the type of the option */ protected function getOptionType($opt) { if (substr($opt, -1) == "=") { return Commands::REQUIRED; } else { if (Strings::contains($opt, '=')) { return Commands::VALUE; } else { return Commands::OPTIONAL; } } }
/** * get the type of the option */ protected function getOptionType($opt) { if (substr($opt, -1) == "=") { return Commands::REQUIRED; } else { if (Strings::contains($opt, '=')) { return Commands::VALUE; } else { return Commands::OPTIONAL; } } }