-
Notifications
You must be signed in to change notification settings - Fork 29
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
Allow options with no short versions #37
Comments
How about implementing it like this flipping the order: The module will check if it's an array, take the first one as the option flag. Then if there is a second element use that for the alias. |
I will check if there's already a flag with said short version and then not use a short version, assuming that it's the case. |
Has this behavior been changed? option(['long'], 'do the thing') // → Short version of option is longer than 1 char
option(['s', 'long'], 'do the thing') // → -s, --long
option(['s'], 'do the thing') // → -s, --undefined
option(['', 'long'], 'do the thing') // → -, --long
option([null, 'long'], 'do the thing') // → Cannot read property 'length' of null |
Hi,
If there is already a short version with a given letter, I think next options starting with same letter should not expose a short version at all.
Here I'm trying to create a list PR and my --cors options conflits with the --cache option:
As far as I understand, I can't setup no short version at all or a short version of more than 1 letter. It means there can't be more than 26 options available and I have to pick a random letter for my cors options
The text was updated successfully, but these errors were encountered: