Updated manpage() to work with pointybeard/helpers-cli-input 1.2

This commit is contained in:
Alannah Kearney 2019-06-01 15:02:30 +10:00
commit f605849ee0

View file

@ -108,14 +108,9 @@ if (!function_exists(__NAMESPACE__.'manpage')) {
$arguments[] = (string) $a; $arguments[] = (string) $a;
} }
foreach ($collection->getTypes() as $type) { foreach ($collection->getItemsExcludeByType('Argument') as $o) {
if ('Argument' == $type) {
continue;
}
foreach ($collection->getItemsByType($type) as $o) {
$options[] = (string) $o; $options[] = (string) $o;
} }
}
// Add the arguments, if there are any. // Add the arguments, if there are any.
if (false === empty($arguments)) { if (false === empty($arguments)) {