-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Incorrect test opts in test: 'boolean and alias with chainable api' #7
Comments
When I make that change, the test fails, so I'm not sure if your suggestion is correct. I've already removed the unused |
var opts = {
herp: { alias: 'h', boolean: true }
}; I don't see what "chainable API" refers to so I think the redundant test could be deleted, as unclear what different test was intended. |
Regarding the alias - shouldn't it be bidirectional? (regardless what is aliased from). Checked the source, aliases are bidirectoinal: Lines 52 to 59 in 62fde7d
|
Yes you are right the aliases are bidirectional. But I am not sure what this affects? (My "inverted" comment?) |
in
'boolean and alias with chainable api'
test:minimist/test/bool.js
Lines 42 to 52 in 980d7ac
the
opts
is redundant - it is not used. Instead opts are passed inline to parse (twice), with incorrect value forboolean
,which should be
true
instead of the name of the argument.opts
should be used instead of passing inline (as it done correctly in other tests)The text was updated successfully, but these errors were encountered: