|
|
|
|
@ -8875,7 +8875,11 @@ tcl::namespace::eval punk::args {
|
|
|
|
|
if {[llength $OPT_REQUIRED]} { |
|
|
|
|
set api_opt_required [lmap v $OPT_REQUIRED {lindex [split $v |] end}] |
|
|
|
|
if {[llength [set missing [punklib_ldiff $api_opt_required $flagsreceived]]]} { |
|
|
|
|
set full_missing [dict get $lookup_optset $missing] |
|
|
|
|
set full_missing [list] |
|
|
|
|
foreach m $missing { |
|
|
|
|
lappend full_missing [dict get $lookup_optset $m] |
|
|
|
|
} |
|
|
|
|
#set full_missing [dict get $lookup_optset $missing] |
|
|
|
|
set msg "Required option missing for %caller%. missing flags: '$full_missing' are marked with -optional false - so must be present" |
|
|
|
|
return -options [list -code error -errorcode [list PUNKARGS VALIDATION [list optionmissing $full_missing received $flagsreceived] -argspecs $argspecs]] $msg |
|
|
|
|
#arg_error "Required option missing for [Get_caller]. missing flags: '$missing' are marked with -optional false - so must be present " $argspecs |
|
|
|
|
|