Skip to content

CliInput ​

php
final readonly class PPTXenigma\CliInput

The words of the command line, sorted into the options that have a value, the flags and the files.

Source: src/CliInput.php

Methods ​

__construct() ​

php
public function __construct(array $values = [], array $files = [])
ParameterDescription
$valuesthe value of each option, and true for each flag

parse() ​

php
public static function parse(array $arguments): self
ParameterDescription
$argumentsthe arguments, without the name of the script

Throws InvalidArgumentException when an option is not known

enum() ​

php
public function enum(string $enum, string $name, BackedEnum $backedEnum): BackedEnum

Returns T

Throws InvalidArgumentException when the value is not one of the cases

has() ​

php
public function has(string $name): bool

text() ​

php
public function text(string $name): string

Documentation of 1.0.0 , built from 5dd2e99 on 1.0.0 by pipeline #37507528046 on 2026-10-06.