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

Argument value prefixed with a dash returns version. #636

Closed
soluml opened this issue Jun 13, 2017 · 2 comments
Closed

Argument value prefixed with a dash returns version. #636

soluml opened this issue Jun 13, 2017 · 2 comments

Comments

@soluml
Copy link

soluml commented Jun 13, 2017

Using commander 2.9.0, I'm trying to call my node script like so: node index -e '-KkXJUkBZMYVJXiMo0Pe'

For some reason, commander is returning the version number instead of calling the script with the e flag set. If I use a different string that doesn't start with a dash, commander works as expected.

This issue occurs whether I use quotes or not.

@roman-vanesyan
Copy link
Collaborator

roman-vanesyan commented Jun 17, 2017

Can you provide part of code, where you configure commander, as it's hard to say which one cause the error, from what exists.

@shadowspawn
Copy link
Collaborator

This issue has not had any activity in over six months. It isn't likely to get acted on due to this report.

Feel free to open a new issue if it comes up again, with new information and renewed interest.

Thank you for your contributions.

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