Argument
Less than 1 minute
Argument
Immutable descriptor for a positional console command argument.
class ArgumentDefines argument metadata used by command parsers, including display name, optional description text, and whether the argument is mandatory.
Properties
name
argument identifier used in CLI definitions
public string $namedescription
optional human-readable argument description
public string $descriptionrequired
whether the argument must be provided by the caller
public bool $requiredMethods
__construct
Creates a command argument descriptor.
public __construct(string $name, string $description, bool $required): voidParameters
| Parameter | Type | Description |
|---|---|---|
$name | string | argument identifier used in CLI definitions |
$description | string | optional human-readable argument description |
$required | bool | whether the argument must be provided by the caller |
Generated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:25 +0000