private string $executable
private array $globalOptions
public Command $commandObject
Initialises the input object with the command line arguments.
public initialise(array $argv): void
Parameter | Type | Description |
---|
$argv | array | |
public run(Command $command): void
Parameter | Type | Description |
---|
$command | Command | |
public getExecutable(): string
public getGlobalOption(string $name): mixed
Parameter | Type | Description |
---|
$name | string | |
public getCommandObject(): ?Command
Gets the command that was used on the command line if it exists.
public getCommand(): ?string
public getArgument(string $name): ?string
Parameter | Type | Description |
---|
$name | string | |
public getOption(string $name): mixed
Parameter | Type | Description |
---|
$name | string | |
Reduces the options array to a simple array of option names.
private reduceOptions(array $definedOptions): void
Parameter | Type | Description |
---|
$definedOptions | array | |
Parses a command line option and adds it to the options array.
private parseOption(string $arg, array $optionsDefinition, array $options): bool
Parameter | Type | Description |
---|
$arg | string | |
$optionsDefinition | array | |
$options | array | |
Generated by Hazaar API Doc Generator