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 $nameType: string
description
optional human-readable argument description
public string $descriptionType: string
required
whether the argument must be provided by the caller
public bool $requiredType: bool
Methods
__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 Fri, 04 Sep 2026 23:32:18 +0000