From 30f359735c44f774ec6e8c02174c014800d7c1e7 Mon Sep 17 00:00:00 2001 From: Dimitri Fontaine Date: Thu, 10 Aug 2017 21:58:53 +0200 Subject: [PATCH] =?UTF-8?q?Make=20it=20easier=20to=20test=20=E2=80=9Cmain?= =?UTF-8?q?=E2=80=9D=20code.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This code path is exercised from the command line only, which means I don't get to run it that often. And it's a pain to debug. So make it easier to run `process-source-and-target` from the REPL. --- src/main.lisp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.lisp b/src/main.lisp index ff86108..55b6aa9 100644 --- a/src/main.lisp +++ b/src/main.lisp @@ -396,8 +396,9 @@ (format stream "Could not parse the command line: see above.")))) (defun process-source-and-target (source-string target-string - type encoding set with field cast - before after) + &optional + type encoding set with field cast + before after) "Given exactly 2 CLI arguments, process them as source and target URIs. Parameters here are meant to be already parsed, see parse-cli-optargs." (let* ((type (handler-case