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

invoke git-style sub commands only when required #810

Closed
wants to merge 1 commit into from

Conversation

yausername
Copy link
Contributor

This PR fixes the below issue

Git-style sub commands are invoked if alias is used as an argument.
Example

program
  .command('com')
  .alias('c')
  .action(() => {
    console.log('com called')
  })

$ > node index.js c c
com called

  index-com(1) does not exist, try --help

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

Successfully merging this pull request may close these issues.

None yet

2 participants