summaryrefslogtreecommitdiff
path: root/src/helper/startup.tcl
diff options
context:
space:
mode:
authorZachary T Welch <zw@superlucidity.net>2009-11-23 12:16:27 -0800
committerZachary T Welch <zw@superlucidity.net>2009-11-24 21:37:37 -0800
commit6b066cd17073d868b88414556d1ca3f0580449ec (patch)
treeac40c09313cd3969852dd23c85b45927e35b1f24 /src/helper/startup.tcl
parent8f5ff3ddcf0ab11b0ec6fc9215144154fb0519f9 (diff)
downloadopenocd+libswd-6b066cd17073d868b88414556d1ca3f0580449ec.tar.gz
openocd+libswd-6b066cd17073d868b88414556d1ca3f0580449ec.tar.bz2
openocd+libswd-6b066cd17073d868b88414556d1ca3f0580449ec.tar.xz
openocd+libswd-6b066cd17073d868b88414556d1ca3f0580449ec.zip
allow scripts to update usage information
The add_usage_text command uses the same C handler, which was updated to support its new polymorphic role. This patch updates the two script commands that needed this support: 'find' and 'script'.
Diffstat (limited to 'src/helper/startup.tcl')
-rw-r--r--src/helper/startup.tcl7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/helper/startup.tcl b/src/helper/startup.tcl
index ede8cdb9..5969cfec 100644
--- a/src/helper/startup.tcl
+++ b/src/helper/startup.tcl
@@ -59,14 +59,15 @@ proc find {filename} {
# make sure error message matches original input string
return -code error "Can't find $filename"
}
-add_help_text find "<file> - print full path to file according to OpenOCD search rules"
+add_usage_text find "<file>"
+add_help_text find "print full path to file according to OpenOCD search rules"
# Run script
proc script {filename} {
source [find $filename]
}
-
-add_help_text script "<filename> - filename of OpenOCD script (tcl) to run"
+add_help_text script "filename of OpenOCD script (tcl) to run"
+add_usage_text script "<file>"
#########