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

Running help on a subcommand should show the actual subcommand help #169

Open
wagenet opened this issue Sep 19, 2011 · 2 comments
Open

Running help on a subcommand should show the actual subcommand help #169

wagenet opened this issue Sep 19, 2011 · 2 comments

Comments

@wagenet
Copy link

wagenet commented Sep 19, 2011

Currently it shows a default (uninformative) help page instead of showing a list of all the commands in the subcommand.

@aspiers
Copy link

aspiers commented Feb 16, 2013

Agreed! Using this test case placed in the top-level of the thor source tree:

$ ruby -Ilib test.rb help
Tasks:
  test.rb help [TASK]  # Describe available tasks or one specific task
  test.rb sub          # This is a subcommand

which leads the user to expect more useful help via the arguments help sub. But instead:

$ ruby -Ilib test.rb help sub
Usage:
  test.rb sub

This is a subcommand

whereas:

$ ruby -Ilib test.rb sub help
Tasks:
  test.rb sub first           # This is the first task in the subcommand
  test.rb sub help [COMMAND]  # Describe subcommands or one specific subcommand
  test.rb sub second          # This is the second task in the subcommand

which is much more useful.

@rberger
Copy link

rberger commented May 7, 2013

Would be interested in the status of this. It looks like its been reported and fixed and broken at least once from looking at the issues history. (Issue #128 and looks like things got lost maybe in issue #147 )

Or am I missing something with subcommands? I'm seeing this exact same problem with version 0.18.1.

Thanks

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

3 participants