Index: tests/method-parameter.test =================================================================== diff -u -rf5848823b019e587de395d838de3e913f452fd30 -r061c1a079618bc5c9e44f127baaba5134691362f --- tests/method-parameter.test (.../method-parameter.test) (revision f5848823b019e587de395d838de3e913f452fd30) +++ tests/method-parameter.test (.../method-parameter.test) (revision 061c1a079618bc5c9e44f127baaba5134691362f) @@ -143,8 +143,9 @@ # # The argument definition of "pattern" for subclass has - # "noleadingdash" option, therefore we can deduce that "-a" must - # be a flag. + # "noleadingdash" option, therefore we can deduce that "-a" must be + # a flag. OTOH, if "-a" is a proper value (e.g. value of a + # variable), then the following command would be perfectly fine. # ? {C info subclass -a} \ {invalid non-positional argument '-a', valid are : -closure, -dependent; @@ -156,6 +157,10 @@ ? {C info subclass -- -a} "" + ? {C info subclass -1} \ + {invalid non-positional argument '-1', valid are : -closure, -dependent; + should be "::C info subclass ?-closure? ?-dependent? ?/pattern/?"} + # # two arguments # @@ -252,6 +257,7 @@ ? {D info superclass -a --} \ {invalid argument '--', maybe too many arguments; should be "::D info superclass ?-closure? ?/pattern/?"} ? {D info superclass -- -a} "" + ? {D info superclass -1} "" # # two arguments