From 2007843ba4adc1b0a3cf6c53a22f3ae69b1049b9 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Tue, 6 Feb 2007 05:14:34 +0000 Subject: [PATCH] add new command-line arguments: -p, -P, -Q svn: r5557 --- collects/compiler/start.ss | 2 +- collects/mzlib/cmdline.ss | 20 +-- doc/release-notes/mzscheme/HISTORY | 3 + man/man1/drscheme.1 | 2 +- man/man1/help-desk.1 | 2 +- man/man1/mred.1 | 45 ++++--- man/man1/mzscheme.1 | 47 ++++--- src/mred/mrmain.cxx | 29 ----- src/mzscheme/cmdline.inc | 190 +++++++++++++++++++---------- src/mzscheme/main.c | 9 -- src/mzscheme/src/thread.c | 4 +- 11 files changed, 205 insertions(+), 148 deletions(-) diff --git a/collects/compiler/start.ss b/collects/compiler/start.ss index 2324136ffb..5d34f97330 100644 --- a/collects/compiler/start.ss +++ b/collects/compiler/start.ss @@ -379,7 +379,7 @@ ("Set the maximum inlining size" "size")] [("--prim") ,(lambda (f) (compiler:option:assume-primitives #t)) - ("Assume primitive bindings at top-level")] + ("Assume primitive bindings at top level")] [("--stupid") ,(lambda (f) (compiler:option:stupid #t)) ("Compile despite obvious non-syntactic errors")] diff --git a/collects/mzlib/cmdline.ss b/collects/mzlib/cmdline.ss index 11f893d49c..52386d07cd 100644 --- a/collects/mzlib/cmdline.ss +++ b/collects/mzlib/cmdline.ss @@ -181,7 +181,7 @@ [(program arguments table finish finish-help help) (parse-command-line program arguments table finish finish-help help (lambda (flag) - (raise-user-error (string->symbol program) "unknown flag: ~s" flag)))] + (raise-user-error (string->symbol program) "unknown switch: ~s" flag)))] [(program arguments0 table finish finish-help help unknown-flag) (define arguments (if (vector? arguments0) (vector->list arguments0) arguments0)) (unless (string? program) @@ -310,9 +310,9 @@ (list #f (list "--help" "-h") (lambda (f) (let* ([sp (open-output-string)]) - (fprintf sp "~a [ ... ]" program) + (fprintf sp "~a [