option parsing is too lenient #958
Closed
Comments
Sounds like something worth spending some time to fix before next release. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While responding to feedback on PR #937 I changed the
math:is-inf
command to accept a&sign
option. I was surprised by two things:I could pass invalid values to the option. In this instance the option should only allow integers (or perhaps float64). Passing an invalid number caused the value to be silently ignored and the default was used instead.
I could specify invalid options. This is true for other builtins that accept options; e.g.,
echo &sep=: &argle=bargle abc def
silently ignores the unexpected&argle
option.The text was updated successfully, but these errors were encountered: