llength $reqdOpts($reqdOptionsIndex)] == 2} {
	set reqCnt $reqdOptionsIndex
	while {$reqCnt < $numReqd && [llength $reqdOpts($reqCnt)] == 2} {
	    incr reqCnt
	}
	error "\nMissing required argument(s). Expecting $reqCnt, got $reqdOptionsIndex \n$helpStr"
    }
    while {$reqdOptionsIndex != $numReqd} {
	set req $reqdOpts($reqdOptionsIndex)
	set cmd [lindex $req 0]
	set arg [lindex $req 2]
	lappend cmd $commandName 0 $arg cmdargs i
	if {[catch $cmd ret]} {
	    # Check if required options are present
	    error "\nError processing optional argument [lindex $reqdOpts($reqdOptionsIndex) 1] option \"$arg\"\n$ret\n$helpStr"
	}
	# Add this a list for now
	set returnVals("reqd_%_[cli::postincr reqdOptionsIndex]") $ret
    }
    
    # Now build the return list
    set optionOrderIndex 0    
    if {$optionOrderLen} {
	while (1) {
	    foreach {optional name type} $optionOrder([cli::postincr optionOrderIndex]) {}
	    #puts "Doing $name $returnVals($name)"
	    if {$optional} {
		if {[info exists returnVals($name)]