Arguments
final class Arguments (View source)
The parsed command line: one command word, "--name=value" options and the remaining positional words. Options may appear before or after the command.
Methods
string|null
command()
No description
bool
has(string $name)
No description
string|null
value(string $name)
The option's value; null when absent or given without "=value"
int|null
positiveInt(string $name)
A positive integer option, null when absent.
array
unknownOptions(array $allowed)
Option names that are set but not in the allowed list.
array
positionals()
No description
Details
static Arguments
parse(array $argv)
No description
string|null
command()
No description
bool
has(string $name)
No description
string|null
value(string $name)
The option's value; null when absent or given without "=value"
int|null
positiveInt(string $name)
A positive integer option, null when absent.
array
unknownOptions(array $allowed)
Option names that are set but not in the allowed list.
array
positionals()
No description