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

Add default command #9

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

Add default command #9

radubrehar opened this issue Mar 23, 2017 · 0 comments

Comments

@radubrehar
Copy link

Would be nice to have a command be the default command:

I'll use https://www.npmjs.com/package/translana to illustrate my point:

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]

For translana, it basically does translation. So I would like to be able to call translana like translana --text="How are you" --to=fr without specifying the translate command, which should be the default.

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