Appearance
CliArguments
php
final readonly class PPTXenigma\CliArgumentsThe arguments of the command line, read and checked.
Source: src/CliArguments.php
Methods
__construct()
php
public function __construct(string $file = '', string $format = 'json', string $sign = Options::DEFAULT_SIGN, Duplicates $duplicates = Duplicates::Error, bool $help = false, string $speaker = null, string $split = null, ScriptOptions $scriptOptions = new ScriptOptions(), string $endSign = null)parse()
php
public static function parse(array $arguments): self| Parameter | Description |
|---|---|
$arguments | the arguments, without the name of the script |
Throws InvalidArgumentException when an argument is not valid