Lines Matching refs:args
16 public static function getopt(array $args, $short_options, $long_options = null) argument
18 if (empty($args)) {
29 if (isset($args[0][0]) && $args[0][0] != '-') {
30 array_shift($args);
33 reset($args);
35 $args = array_map('trim', $args);
37 while (false !== $arg = current($args)) {
38 $i = key($args);
39 next($args);
45 $non_opts = array_merge($non_opts, array_slice($args, $i + 1));
51 $non_opts[] = $args[$i];
59 $args
66 $args
74 protected static function parseShortOption($arg, $short_options, &$opts, &$args) argument
95 if (false === $opt_arg = current($args)) {
100 next($args);
108 protected static function parseLongOption($arg, $long_options, &$opts, &$args) argument
141 if (false === $opt_arg = current($args)) {
146 next($args);