X-Git-Url: https://git.distorted.org.uk/~mdw/ircbot/blobdiff_plain/081556a487ae08815287fdba7a6bfeb495a4cc9d..96e2d9dd0c64095b92a233ad355d7fb3d84f1c14:/blight-startup.tcl?ds=sidebyside diff --git a/blight-startup.tcl b/blight-startup.tcl index 16c3aa0..59d9e2e 100755 --- a/blight-startup.tcl +++ b/blight-startup.tcl @@ -1,6 +1,12 @@ #!/usr/bin/tclsh8.4 package require Tclx -source blight.tcl +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