Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

subcommand specifying an "argument :arg" does not display the subcommand help #524

Open
StupidCodeFactory opened this issue Sep 9, 2016 · 0 comments

Comments

@StupidCodeFactory
Copy link

StupidCodeFactory commented Sep 9, 2016

When running the following i was expecting to see the print_arg full help section:

thor subcommand_with_argument help print_arg

instead i see the subcommand general help (also notice the ARG between help and [COMMAND] seems odd):

Commands:
       thor subcommand_with_argument help ARG [COMMAND]  # Describe subcommands or one specific subcommand
       thor subcommand_with_argument print_arg ARG       # My method with a cool argument

if i remove the argument in the subclass (i.e comment out this line https://github.com/StupidCodeFactory/thor/pull/1/files#diff-a113f9bffbf7327e2f860433311b4e15R11) then it does show the print_arg full help section

I've added a spec to prove my issue StupidCodeFactory#1

It's not very clear if this behaviour is erroneous, i'd like to confirm this is an issue before digging deeper into this.

Thanks guys!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant