From: Mark Wooding Date: Sat, 1 Sep 2012 17:31:42 +0000 (+0100) Subject: blight-startup.tcl: Take personality config name as argument. X-Git-Url: https://git.distorted.org.uk/~mdw/ircbot/commitdiff_plain/00535832a7b0ae956c48b73be67624b20b29d7b0?hp=6384347524b9ed0e45d92ade788d996ac6ec40b2 blight-startup.tcl: Take personality config name as argument. --- 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