Lines Matching defs:help
9 * commands and even generates a help text from this setup.
31 /** @var Colors for colored help output */
34 /** @var string newline used for spacing help texts */
55 'help' => '',
75 * Sets the help text for the tool itself
77 * @param string $help
79 public function setHelp($help)
81 $this->setup['']['help'] = $help;
85 * Sets the help text for the tools commands itself
87 * @param string $help
89 public function setCommandHelp($help)
91 $this->setup['']['commandhelp'] = $help;
95 * Use a more compact help screen with less new lines
105 * Register the names of arguments for help generation and number checking
109 * @param string $arg argument name (just for help)
110 * @param string $help help text
115 public function registerArgument($arg, $help, $required = true, $command = '')
123 'help' => $help,
134 * @param string $help
137 public function registerCommand($command, $help)
146 'help' => $help
152 * Register an option for option parsing and help generation
155 * @param string $help help text for this option
161 public function registerOption($long, $help, $short = null, $needsarg = false, $command = '')
169 'help' => $help,
357 * Builds a help screen from the available options. You may want to call it from -h or on error
363 public function help()
406 if ($this->setup[$command]['help']) {
410 array('', $this->setup[$command]['help'] . $this->newline)
438 array('', $name, $opt['help']),
457 array('', $name, $arg['help']),