diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/option.lisp | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/src/option.lisp b/src/option.lisp index 2a4721f..5848a8d 100644 --- a/src/option.lisp +++ b/src/option.lisp @@ -60,6 +60,8 @@ with code `exit-code`."  `condition` and exits with EX_USAGE."    (exit-with-error condition sysexits:+usage+)) +(defconstant *version* (asdf:component-version (asdf:find-system :extreload))) +  (defun parse-options ()    "Parse command line options."    (multiple-value-bind (options free-args) @@ -79,7 +81,7 @@ with code `exit-code`."        (opts:exit sysexits:+usage+))      (when-option (options :version) -      (format t "~a~%" (asdf:component-version (asdf:find-system :extreload))) +      (format t "~a~%" *version*)        (opts:exit sysexits:+ok+)) | 
