aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2021-02-03 00:34:01 +0100
committerTeddy Wing2021-02-03 00:34:36 +0100
commit2d817001a98fc7922df69e893a64570203d64e69 (patch)
tree72a5c2caa42fda48251f96da9837aa3170fdeb82
parent8e11ddad215279411560838917220301e13148fd (diff)
downloadextreload-2d817001a98fc7922df69e893a64570203d64e69.tar.bz2
parse-options: Exit with error if `--socket-url` isn't given
-rw-r--r--l/src/option.lisp5
1 files changed, 4 insertions, 1 deletions
diff --git a/l/src/option.lisp b/l/src/option.lisp
index a294325..22e6052 100644
--- a/l/src/option.lisp
+++ b/l/src/option.lisp
@@ -32,7 +32,10 @@
(opts:exit 0))
- ; (if ) ;; If no socket URL, error 64
+ (when (null (getf options :socket-url))
+ (format *error-output* "error: '--socket-url' is required~%")
+
+ (opts:exit 64))
(make-instance 'config
:socket-url (getf options :socket-url)