Import Tcl 8.6.12
This commit is contained in:
@@ -601,7 +601,7 @@ proc ::tcl::OptCheckType {arg type {typeArgs ""}} {
|
||||
return [expr {$arg ? 1 : 0}]
|
||||
}
|
||||
choice {
|
||||
if {[lsearch -exact $typeArgs $arg] < 0} {
|
||||
if {$arg ni $typeArgs} {
|
||||
error "invalid choice"
|
||||
}
|
||||
return $arg
|
||||
|
||||
Reference in New Issue
Block a user