mirror of
https://github.com/n3w/helpers-functions-cli.git
synced 2025-12-19 12:43:22 +00:00
Updated manpage() to work with pointybeard/helpers-cli-input 1.2
This commit is contained in:
parent
2274998ed6
commit
f605849ee0
1 changed files with 3 additions and 8 deletions
|
|
@ -108,14 +108,9 @@ if (!function_exists(__NAMESPACE__.'manpage')) {
|
|||
$arguments[] = (string) $a;
|
||||
}
|
||||
|
||||
foreach ($collection->getTypes() as $type) {
|
||||
if ('Argument' == $type) {
|
||||
continue;
|
||||
}
|
||||
foreach ($collection->getItemsByType($type) as $o) {
|
||||
foreach ($collection->getItemsExcludeByType('Argument') as $o) {
|
||||
$options[] = (string) $o;
|
||||
}
|
||||
}
|
||||
|
||||
// Add the arguments, if there are any.
|
||||
if (false === empty($arguments)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue