Skip to content

Multiple options bug #430

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

Closed
a-x- opened this issue Aug 25, 2015 · 4 comments
Closed

Multiple options bug #430

a-x- opened this issue Aug 25, 2015 · 4 comments

Comments

@a-x-
Copy link

a-x- commented Aug 25, 2015

if i set three of option's aliases:
option('-n, -B, --no-cache', ...)

then i receive:

error: unknown option `--no-cache'

What am I doing wrong?

@a-x-
Copy link
Author

a-x- commented Aug 25, 2015

/cc @sbmaxx

@zhiyelee
Copy link
Collaborator

should use this pattern .option('-p, --peppers', 'Add peppers') -x for short, --xxx for long, split with [ ,|]

@a-x-
Copy link
Author

a-x- commented Aug 25, 2015

Thank you, but it's clear.
So, can i set more than one alias?

@zhiyelee
Copy link
Collaborator

Unfortunately not, now we can only set alias for sub command till now.

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