X-Git-Url: https://git.distorted.org.uk/~mdw/ircbot/blobdiff_plain/b31f054e6096861f57d2ed39f91c3086cc4042f7..e5b8f02ecbf7e5fcfe14c1cfc91ca7fa93bc9191:/blight-startup.tcl diff --git a/blight-startup.tcl b/blight-startup.tcl index c2a2436..59d9e2e 100755 --- a/blight-startup.tcl +++ b/blight-startup.tcl @@ -1,5 +1,12 @@ -#!/usr/bin/tcl -f -source blight.tcl +#!/usr/bin/tclsh8.4 +package require Tclx +if {[llength $argv] > 0} { + set script [lindex $argv 0] + set argv [lrange $argv 1 end] +} else { + set script blight.tcl +} +source $script.tcl set tcl_prompt1 { puts -nonewline "% " } set tcl_prompt2 { puts -nonewline "> " } commandloop -async -interactive on