Lines Matching refs:opt
79 $opt = $arg[$i];
82 if (($spec = strstr($short_options, $opt)) === false || $arg[$i] == ':') {
84 "unrecognized option -- $opt"
90 $opts[] = [$opt, substr($arg, $i + 1)];
97 "option requires an argument -- $opt"
104 $opts[] = [$opt, $opt_arg];
112 $opt = $list[0];
119 $opt_len = strlen($opt);
125 if ($opt_start != $opt) {
131 if ($opt_rest != '' && $opt[0] != '=' && $i + 1 < $count &&
132 $opt == substr($long_options[$i + 1], 0, $opt_len)) {
134 "option --$opt is ambiguous"
143 "option --$opt requires an argument"
151 "option --$opt doesn't allow an argument"
161 throw new PHPUnit_Framework_Exception("unrecognized option --$opt");