mini\CLI\ArgManager::withSubcommand()
Method
public
Signature
public function withSubcommand(string $subcommands): static
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$subcommands |
string |
optional | Documentation missing |
Returns
static
Documentation
Declare valid subcommands
When a declared subcommand is encountered, it's consumed and available via nextCommand(). Undeclared subcommands or unknown options end up in getUnparsedArgs().