aboutsummaryrefslogtreecommitdiffstats
path: root/l/extreload.asd
diff options
context:
space:
mode:
authorTeddy Wing2021-02-03 00:23:16 +0100
committerTeddy Wing2021-02-03 00:23:16 +0100
commit8e11ddad215279411560838917220301e13148fd (patch)
tree28130f31dfd696c03c1c7f305d8e8cec1c2df28b /l/extreload.asd
parent75b5d75523d36336af810207c3363044020bba17 (diff)
downloadextreload-8e11ddad215279411560838917220301e13148fd.tar.bz2
main: Move option parsing code to new function `parse-options`
Make a new function `parse-options` that parses the command line options and returns a `config` object. We'll use that object instead of `options` in `main`. Cleans up the `main` function a bit. Currently, we just print the `config` object to ensure we're storing the proper values. Followed Practical Common Lisp's example to implement `print-object` so we can see the contents of its slots: http://www.gigamonkeys.com/book/practical-a-spam-filter.html#the-heart-of-a-spam-filter Still need to implement error checking for a missing `--socket-url` option.
Diffstat (limited to 'l/extreload.asd')
-rw-r--r--l/extreload.asd2
1 files changed, 1 insertions, 1 deletions
diff --git a/l/extreload.asd b/l/extreload.asd
index 9a09c1b..0dd04ed 100644
--- a/l/extreload.asd
+++ b/l/extreload.asd
@@ -8,8 +8,8 @@
:serial t
:components ((:file "package")
(:file "macro")
- (:file "option")
(:file "config")
+ (:file "option")
(:file "main"))))
:build-operation "program-op"