rails / thor

Thor is a toolkit for building powerful command-line interfaces.
http://whatisthor.com/
MIT License
5.11k stars 552 forks source link

Fix for [Doubly nested subcommand creates wrong help output] #755

Closed KishiTheMechanic closed 2 years ago

KishiTheMechanic commented 2 years ago

Related this issue https://github.com/rails/thor/issues/627. If we don't put command name (basename) there, it makes sense as arguments after the command. Since it seems to take time to get subcommand names there, I think it's the solution for now.

dorner commented 2 years ago

@KishiTheMechanic can you add a test for this behavior so we can validate it works as expected?

KishiTheMechanic commented 2 years ago

I made #756 and close #755 now.

n1xn commented 7 months ago

Little bit late on that, but I monkeypatched that here if somebody else has that issue.