X-Git-Url: https://git.distorted.org.uk/~mdw/ircbot/blobdiff_plain/081556a487ae08815287fdba7a6bfeb495a4cc9d..e5b8f02ecbf7e5fcfe14c1cfc91ca7fa93bc9191:/blight-startup.tcl 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