mini\args() Function

Documentation

Get or set the current ArgManager instance for CLI argument parsing

Returns an unconfigured ArgManager on first call. Use the pattern: args(args()->withFlag(...)->withSubcommand(...));

This same pattern works at every command level - root command and subcommands all configure themselves identically.

Signature

function args(?mini\CLI\ArgManager $args = NULL): mini\CLI\ArgManager

Parameters

Name Type Default Description
$args ?mini\CLI\ArgManager NULL Documentation missing

Returns

mini\CLI\ArgManager

Source

src/CLI/functions.php:67-79