nategood / commando

An Elegant CLI Library for PHP
MIT License
798 stars 80 forks source link

Display title if exists if a required argument is missing #89

Open l-vo opened 6 years ago

l-vo commented 6 years ago

In the help screen, the title can be displayed instead of "arg 0". Add the same behavior on the error message when a required argument is missing.

NeoVance commented 6 years ago

@l-vo Please merge latest dev, and rerun checks.

l-vo commented 6 years ago

@NeoVance Done :)

tolidano commented 5 years ago

I tried to do a similar thing because I didn't read carefully enough the list of open PRs: https://github.com/nategood/commando/pull/98

l-vo commented 5 years ago

@tolidano Sadly I'm not sure that the project is still maintained anyway. There are some alternatives like Symfony console or Laravel zero (although they are a bit heavier). @nategood could you confirm the state of the project please ?

tolidano commented 5 years ago

if @nategood wants to abandon, I offer to take it over, I think it's far and away more useful than pulling in Symfony or Laravel components. Feel free to publish a new version to packagist to redirect to tolidano/commando, and I'll set up the rest. I'll even go through all the open PRs and the issues. I'll publish a final version then upgrade the whole thing to PHP 7.2 and publish a 7.2+ version.

tolidano commented 5 years ago

I went ahead and forked and rewrote this for PHP 7.2 - https://packagist.org/packages/tolidano/commandox

tolidano commented 5 years ago

I created a PHP 5.4-7.1 version of this and then a PHP 7.2 version: https://github.com/tolidano/commandox/releases