python-poetry / cleo

Cleo allows you to create beautiful and testable command-line interfaces.
https://cleo.readthedocs.io
MIT License
1.28k stars 91 forks source link

Update application.py - Fixed running poetry --help #387

Closed enio-martinelli closed 10 months ago

enio-martinelli commented 11 months ago

Running poetry --help was governo the behavior of poetry list --help instead of poetry list. The error was fixed in a simple way, changing the value of the variable "name" to "list" and removing the "help" parameter when calling the "_get_command_name(io)" funcition, when io assumed the values "-h" or "--help", in lines 370-371. This is in response of Issue #8710.

Secrus commented 10 months ago

Hi. Thank you for your contribution. Sadly, I will close this PR. We are currently working on a major rework of Cleo internals and until that is ready, we don't plan on making any new releases. The issue you are trying to fix here won't exist anymore once we are done with the refactor.