doesn't change anything...
But the thing is it works for the + modes and not for the - ones... I don't get why.
You likely have an [lsearch] inside your proc. The minus sign of the "-o" is seen as the start of an option definition. However, "o" is not an option and so Tcl complains.
That is why there is [lsearch --]. The "--" says that no options will follow after the "--". Any following minus sign should be treated as such and not as the start of an option.
I get the message
Tcl error [modes_say]: bad option "-v": must be -exact, -glob, -regexp, or --
although I am not supposed to treat the -v case... this is very odd to me.
I get the message
Tcl error [modes_say]: bad option "-v": must be -exact, -glob, -regexp, or --
although I am not supposed to treat the -v case... this is very odd to me.