From 90ba284584d9dc1f56787fd91c0fd7f9d4d5f72f Mon Sep 17 00:00:00 2001 From: mainzelm Date: Fri, 20 Feb 2004 15:27:29 +0000 Subject: [PATCH] Revert last check-in. Reading again through the manual, I now think that it's maybe better to complain if -e was specified without -sfd or -s. --- scsh/top.scm | 175 +++++++++++++++++++++++---------------------------- 1 file changed, 78 insertions(+), 97 deletions(-) diff --git a/scsh/top.scm b/scsh/top.scm index 42f3621..4ae6c7b 100644 --- a/scsh/top.scm +++ b/scsh/top.scm @@ -107,7 +107,7 @@ (define (parse-scsh-args args) (let lp ((args (meta-arg-process-arglist args)) (switches '()) ; A list of handler thunks - (top-entry #f) ; -e + (top-entry #f) ; -t (need-script? #f)) ; Found a -ds, -dm, or -de? ; (display args (current-output-port)) (if (pair? args) @@ -115,47 +115,31 @@ (args (cdr args))) (cond ((string=? arg "-c") - (cond ((not (pair? args)) - (bad-arg "-c switch requires argument")) - (top-entry - (bad-arg "-c switch used with -e switch")) - (need-script? - (bad-arg "-ds, -dm, or -de switch requires -s