Beispiel #1
0
 /**
  * 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;
         }
     }
 }