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

Help is not shown on subcommands #42

Closed
antho1404 opened this issue Jul 4, 2019 · 3 comments
Closed

Help is not shown on subcommands #42

antho1404 opened this issue Jul 4, 2019 · 3 comments

Comments

@antho1404
Copy link

In a cli with subcommands, the help doesn't always work.

➜  cli git:(ux/remove-aliases) ✗ ./bin/run account 
Manage your MESG Accounts

USAGE
  $ mesg-cli account:COMMAND

COMMANDS
  account:create              Create a new account
  account:delete              Delete an existing account
  account:export              Export an existing account
  account:import              Import a account
  account:import-private-key  Import a account from a private key
  account:list                List all existing accounts
➜  cli git:(ux/remove-aliases) ✗ ./bin/run account:
 ›   Error: command account: not found

./bin/run account: should return the same help message

@RasPhilCo
Copy link
Contributor

account is a topic which you can call help on. account:foo is a command which has help. account: isn't anything.

@antho1404
Copy link
Author

Is there any way to treat account: as either a topic or a command and have the help attached to it?

@RasPhilCo
Copy link
Contributor

Hmm, I'll consider that in coming help improvements.

For now, https://github.com/oclif/plugin-not-found will handle the trailing colon and suggest a command.

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

2 participants