Lines Matching refs:command
13 * @brief Abstract base console command implementation
33 self::error("No command given, check ${argv[0]} help\n");
35 self::error("Unknown command '${argv[1]}', check ${argv[0]} help\n");
37 $command = $argv[1];
40 if (isset($this->cmds[$command]['arg'])) {
41 $this->args = call_user_func(array($this, $this->cmds[$command]['arg']));
49 …self::error("Missing argument to parameter '$arg' of command '$command', check ${argv[0]} help\n");
54 self::error("Unknown parameter '${argv[$i]}' to command $command, check ${argv[0]} help\n");
64 … self::error("Missing default trailing arguments to command $command, check ${argv[0]} help\n");
73 self::error("Unexpected default arguments to command $command, check ${argv[0]} help\n");
78 $missing .= "Missing parameter '-$arg' to command $command, check ${argv[0]} help\n";
87 call_user_func(array($this, $this->cmds[$command]['run']), $this->args);
230 return "This help or help for a selected command.";
283 …return array('' => array('typ'=>'any','val'=>NULL,'inf'=>'Optional command to retrieve help for.')…
292 self::error("More than one command given.\n");
301 self::error("Unknown command, cannot retrieve help.\n");
307 echo "\n$argv[0] <command> [options]\n\n";