The current implementation of Corrector::match currently used in HelpCommand::execute is quite naive since it is only based on php's native similar_text.
Consider making it smarter.
The idea occurred after
$ phpbrew uninstall php-7.0.15
Did you mean 'install'? [Y/n]
Where one presses Yes (or at least I did) without second thought.
I would expect Corrector::match to say "Did you mean 'remove'? [Y/n]".
If this is a direction you would like to go towards, I would be happy to provide a first implementation.
The current implementation of
Corrector::matchcurrently used inHelpCommand::executeis quite naive since it is only based on php's nativesimilar_text.Consider making it smarter.
The idea occurred after
Where one presses Yes (or at least I did) without second thought.
I would expect
Corrector::matchto say "Did you mean 'remove'? [Y/n]".If this is a direction you would like to go towards, I would be happy to provide a first implementation.