Lines Matching defs:args
26 protected $args = array();
54 'args' => array(),
60 $this->args = $this->readPHPArgv();
61 $this->bin = basename(array_shift($this->args));
121 $this->setup[$command]['args'][] = array(
145 'args' => array(),
193 $argc = count($this->args);
196 foreach ($this->setup[$this->command]['args'] as $arg) {
211 * The given $args array should NOT contain the executed file as first item anymore! The $args
225 $argc = count($this->args);
227 $arg = $this->args[$i];
232 $non_opts = array_merge($non_opts, array_slice($this->args, $i + 1));
238 $non_opts = array_merge($non_opts, array_slice($this->args, $i));
244 $non_opts = array_merge($non_opts, array_slice($this->args, $i));
260 if (is_null($val) && $i + 1 < $argc && !preg_match('/^--?[\w]/', $this->args[$i + 1])) {
261 $val = $this->args[++$i];
286 if ($i + 1 < $argc && !preg_match('/^--?[\w]/', $this->args[$i + 1])) {
287 $val = $this->args[++$i];
299 // parsing is now done, update args array
300 $this->args = $non_opts;
303 if (!$this->command && $this->args && isset($this->setup[$this->args[0]])) {
305 $this->command = array_shift($this->args);
353 return $this->args;
373 $hasargs = (bool)$this->setup[$command]['args'];
395 foreach ($this->setup[$command]['args'] as $arg) {
452 foreach ($this->setup[$command]['args'] as $arg) {
493 "Could not read cmd args (register_argc_argv=Off?)",