From 82b0f24ab39665e962abd002dbb7ba6631181ec1 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Sat, 8 Jul 2023 00:06:16 -0500 Subject: Refactor usage --- boudin.scm | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/boudin.scm b/boudin.scm index 737cbf1..082542b 100755 --- a/boudin.scm +++ b/boudin.scm @@ -364,19 +364,26 @@ boudin --- a little static site generator ;;; Options & Operands (SRFI 37) +(define (die error-code message . args) + (with-output-to-port (current-error-port) + (apply print message args) + (exit error-code))) + +(define usage #<