aboutsummaryrefslogtreecommitdiff
path: root/src/interp/sys-driver.boot
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2008-02-10 20:47:41 +0000
committerdos-reis <gdr@axiomatics.org>2008-02-10 20:47:41 +0000
commit10e4d901b94a029bd9a6f62c421ecdf0baafd139 (patch)
tree9e8ae01a489089eac309038bf85ade7bd601f8f1 /src/interp/sys-driver.boot
parent3323315437ba6092fdab0d1fc46240c0d963fb43 (diff)
downloadopen-axiom-10e4d901b94a029bd9a6f62c421ecdf0baafd139.tar.gz
* interp/sys-driver.boot (executeSpadScript): By default make
script execution quiet. Support --verbose for verbose processing.
Diffstat (limited to 'src/interp/sys-driver.boot')
-rw-r--r--src/interp/sys-driver.boot14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/interp/sys-driver.boot b/src/interp/sys-driver.boot
index f2fe5d7f..e6faafe4 100644
--- a/src/interp/sys-driver.boot
+++ b/src/interp/sys-driver.boot
@@ -53,6 +53,8 @@ $verboseInterprerter := true
$PrintCompilerMessageIfTrue := true
+++
+$options := []
+++ Initialization routine run by the core system before handing off
+++ to the interpreter or compiler.
@@ -191,10 +193,14 @@ executeSpadScript(progname,options,file) ==
$BOOT := NIL
$NEWSPAD := true
$SPAD := true
- -- $EchoLines := false
- -- ECHO_-META : fluid := false
- -- $verboseInterprerter := false
- -- $ProcessInteractiveValue := true
+ if getOption(Option '"verbose",%systemOptions()) then
+ $verboseInterprerter := true
+ $options := []
+ $ProcessInteractiveValue := false
+ else
+ $verboseInterprerter := false
+ $options := [["quiet"]]
+ $ProcessInteractiveValue := true
CATCH($intCoerceFailure,
CATCH($intSpadReader,read [file]))
coreQuit (errorCount()> 0 => 1; 0)