mini\CLI\ArgManager::parentCommand()
Method
public
Signature
public function parentCommand(): ?mini\CLI\ArgManager
Returns
Documentation
Get the parent command's ArgManager
When processing subcommands, use this to access flags declared on the parent.
mini\args($sub); // Step into subcommand
$verbose = mini\args()->parentCommand()?->getFlag('verbose');