Make it easier to test “main” code.

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.
This commit is contained in:
Dimitri Fontaine 2017-08-10 21:58:53 +02:00
parent 773dcaeca3
commit 30f359735c

View File

@ -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