/** * Parse unset command line options into non-prefixed CLImate arguments. * * Non-prefixed arguments are parsed after the prefixed arguments on the * command line, in the order that they're defined in the script. * * @param array $unParsedArguments */ protected function nonPrefixedArguments(array $unParsedArguments = []) { foreach ($this->filter->withoutPrefix() as $key => $argument) { if (isset($unParsedArguments[$key])) { $argument->setValue($unParsedArguments[$key]); } } }
/** * Get the arguments ordered by whether or not they have a prefix * * @return Argument[] */ protected function getOrderedArguments() { return array_merge($this->filter->withPrefix(), $this->filter->withoutPrefix()); }