You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed a behavior change from nopt@1.0.10 -> nopt@2.1.2 with the parsing of unexpected arguments.
In nopt@1.0.10 '-a a' and '-a=a' (as well as with --) were equivalent.
In nopt@2.1.2 '-a a' and '-a=a' (as well as with --) behave differently. Basically, -a a works like -a (setting prop a to true) but adds "a" the the remain array. Shouldn't both set prop a to string "a"?
FWIW, I think the new default behaviour is better; an unknown option should be assumed to be a flag (edit: unless they are in the form -a=b of course). But if major-version back compat is desired (which would be very surprising), then yes, this is a bug.
I've noticed a behavior change from nopt@1.0.10 -> nopt@2.1.2 with the parsing of unexpected arguments.
--
) were equivalent.--
) behave differently. Basically,-a a
works like-a
(setting propa
totrue
) but adds"a"
the theremain
array. Shouldn't both set propa
to string"a"
?The text was updated successfully, but these errors were encountered: