ArgsPreprocessor
class ArgsPreprocessor (View source)
Preprocess commandline arguments.
- Record @sitealias, if present
- Record a limited number of global options
Anything not handled here is processed by Symfony Console.
Properties
protected SiteSpecParser|null | $specParser | ||
protected ArgsRemapper|null | $remapper |
Methods
ArgsPreprocessor constructor
nextCouldBeValue determines whether there is a next argument that
exists and does not begin with a -
.
Determine whether the provided argument is an alias or a site specification.
Check to see if '$opt' is one of the options that we record that takes a value.
Check to see if the provided option matches the entry from the option table.
Details
__construct()
ArgsPreprocessor constructor
void
setArgsRemapper(ArgsRemapper $remapper)
No description
parse(array $argv, PreflightArgsInterface $storage)
Parse the argv array.
static protected bool
nextCouldBeValue($argv)
nextCouldBeValue determines whether there is a next argument that
exists and does not begin with a -
.
protected bool
isAliasOrSiteSpec(string $arg)
Determine whether the provided argument is an alias or a site specification.
protected array
findMethodForOptionWithValues(array $optionsTable, string $opt)
Check to see if '$opt' is one of the options that we record that takes a value.
protected array
checkMatchingOption(string $opt, string $keyParam, string $methodName)
Check to see if the provided option matches the entry from the option table.