template::util::list_opts (public, deprecated)

 template::util::list_opts [ array_ref ]

Defined in packages/acs-templating/tcl/deprecated-procs.tcl

Deprecated. Invoking this procedure generates a warning.

Converts an array to an option list DEPRECATED: this proc can be replaced by simple tcl idioms

Parameters:
array_ref (optional, defaults to "opts")
The name of the array in the calling frame containing option-value pairs. Defaults to "opts".
Returns:
A list of option-value pairs suitable for appending to a command.
See Also:
  • plain tcl

Testcases:
No testcase defined.
Source code:
ad_log_deprecated proc template::util::list_opts

    upvar $array_ref arr

    set ret [list]
    foreach {key value} [array get arr] {
        lappend ret "-$key" $value
    }

    return $ret
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: