File tree Expand file tree Collapse file tree 5 files changed +180
-248
lines changed
Expand file tree Collapse file tree 5 files changed +180
-248
lines changed Original file line number Diff line number Diff line change @@ -718,7 +718,7 @@ proc ::argparse {args} {
718718 } elseif {$argv ne {}} {
719719 # The switch was given the expected argument.
720720 set argv0 [@ [{*}$validateHelper $normal [dict get $def $name ] [@ $argv 0]] 0]
721- set argv0 [@ [{*}$typeChecker $normal [dict get $def $name ] [@ $argv 0] ] 0]
721+ set argv0 [@ [{*}$typeChecker $normal [dict get $def $name ] $argv0 ] 0]
722722 if {[info exists key]} {
723723 if {[dict exists $def $name optional]} {
724724 dict set result $key [list {} $argv0 ]
@@ -898,7 +898,7 @@ proc ::argparse {args} {
898898 if {[dict exists $alloc $name ]} {
899899 if {![dict exists $opt catchall] && $name ne {}} {
900900 set val [@ [{*}$validateHelper $name $opt [@ $params $i ]] 0]
901- set val [@ [{*}$typeChecker $name $opt [@ $params $i ] ] 0]
901+ set val [@ [{*}$typeChecker $name $opt $val ] 0]
902902 if {[dict exists $opt pass]} {
903903 if {([string index $val 0] eq {-}) && ![dict exists $result [dict get $opt pass]]} {
904904 dict lappend result [dict get $opt pass] --
You can’t perform that action at this time.
0 commit comments