Closed staff0rd closed 5 years ago
I imagine the getArguments() method will work.
Parse has this snippet:
if ($type === self::OPTION_TYPE_ARGUMENT) {
// it is an argument, use an int as the index
$keyvals[$count] = $name;
// We allow for "dynamic" anonymous arguments, so we
// add an option for any anonymous arguments that
// weren't predefined
if (!$this->hasOption($count)) {
$this->options[$count] = new Option($count);
}
$count++;
} else {
Can iterate through options. Quotes are the usual expected behavior.
If i've configured argument parsing for
x
andy
, in scenarios below what is the best way to retrieve all tokens after the last parsed argument?I can achieve a variable containing
everything else that's here
but only if I enclose it in quotes. Any way to do this without quotes?