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

Improve help output for options #7

Open
radubrehar opened this issue Mar 23, 2017 · 0 comments
Open

Improve help output for options #7

radubrehar opened this issue Mar 23, 2017 · 0 comments

Comments

@radubrehar
Copy link

This is the help output for https://www.npmjs.com/package/translana

Usage:
 translana <command> [options]

Commands:
  translate  [--text] [--to] [--from] Translates text from source to target language
  version    Prints the version of the translator
  check      Checks slana is working

Options:
  --help     Show help  [boolean]
  --version  Show version number  [boolean]
  --from  [string]
  --to  [string]
  --text  [string]

Notice the options are all listed, from all commands. This does not reflect the reality, since --from, --to and --text are only available to the translate command.
Ideally, it should be like:

Options:
  --help     Show help  [boolean]
  --version  Show version number  [boolean]
  [translate]
    --from  [string]
    --to  [string]
    --text  [string]
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