aboutsummaryrefslogtreecommitdiff
path: root/tree.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'tree.tcl')
-rw-r--r--tree.tcl8
1 files changed, 4 insertions, 4 deletions
diff --git a/tree.tcl b/tree.tcl
index 6b961c7..969469a 100644
--- a/tree.tcl
+++ b/tree.tcl
@@ -15,9 +15,9 @@ package provide tree
#
# Set the value for the given key
#
-# $pt lappend <nodename> <key> <value>
+# $pt lappend <nodename> <key> <value> ...
#
-# Append to the (list) value for the given key, or set if not yet set
+# Append to the (list) value(s) for the given key, or set if not yet set
#
# $pt keyexists <nodename> <key>
#
@@ -125,9 +125,9 @@ proc tree_set {treeref node key value} {
# treehandle lappend node key value
#
-proc tree_lappend {treeref node key value} {
+proc tree_lappend {treeref node key args} {
_tree_update_node $treeref $node n {
- lappend n($key) $value
+ lappend n($key) {expand}$args
set result $n($key)
}
return $result