return ""
}
+proc assure-all-list-params-exist {opt {offset 0}} {
+ global Stash
+ set pth [find-opt-schema $opt]
+ set idx [lindex [lsearch -all [file split $pth] "*"] end-$offset]
+ if {$idx != ""} {
+ set pth [file join {*}[lrange [file split $opt] 0 $idx]]
+ if {! [file exists $Stash/$pth]} {
+ puts stderr "$pth does not exist"
+ exit 1
+ }
+ }
+}
+
set opt [lindex $argv 1]
switch [lindex $argv 0] {
list {
}
}
add {
+ assure-all-list-params-exist $opt 1
set dir [file dirname $opt]
set tail [run-checker $opt [file tail $opt]]
set tail [string trimright $tail "\n"]
file delete -force $Stash/$opt
}
set {
+ assure-all-list-params-exist $opt
if {[llength $argv] > 2} {
set v [lindex $argv 2]
if {$v == ""} {