HelpModule
Less than 1 minute
HelpModule
Built-in console help module.
class HelpModule extends \Hazaar\Console\Modules\ModuleProvides general usage output, module/command-specific help text, and formatted listings of available commands, arguments, and options.
Properties
executable
Executable name used when rendering usage examples.
private string $executableMethods
execute
Executes help rendering for the current input context.
public execute(Input $input, Output $output): intParameters
| Parameter | Type | Description |
|---|---|---|
$input | Input | parsed command-line input |
$output | Output | console output writer |
configure
Registers global help options and the help command definition.
protected configure(): voidwriteGlobalOptions
Writes global option definitions when available.
private writeGlobalOptions(Output $output): voidParameters
| Parameter | Type | Description |
|---|---|---|
$output | Output | console output writer |
writeCommands
Writes the available commands to the output.
private writeCommands(Output $output, array $commands): voidParameters
| Parameter | Type | Description |
|---|---|---|
$output | Output | |
$commands | array |
writeCommand
Writes detailed help output for a specific command.
private writeCommand(Output $output, Command $command, ?Module $module): voidParameters
| Parameter | Type | Description |
|---|---|---|
$output | Output | console output writer |
$command | Command | command definition to describe |
$module | Module | optional module owning the command |
writeArguments
Writes the arguments for a command to the output.
private writeArguments(Output $output, array $arguments): voidParameters
| Parameter | Type | Description |
|---|---|---|
$output | Output | |
$arguments | array |
writeOptions
Writes the options for a command to the output.
private writeOptions(Output $output, array $options, string $label = 'Options'): voidParameters
| Parameter | Type | Description |
|---|---|---|
$output | Output | |
$options | array | |
$label | string |
writeModuleHelp
private writeModuleHelp(Output $output, Module $module): voidParameters
| Parameter | Type | Description |
|---|---|---|
$output | Output | |
$module | Module |
writeHelp
private writeHelp(Output $output): voidParameters
| Parameter | Type | Description |
|---|---|---|
$output | Output |
Generated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:25 +0000