diff options
author | Teddy Wing | 2021-02-02 00:34:32 +0100 |
---|---|---|
committer | Teddy Wing | 2021-02-02 00:34:32 +0100 |
commit | 074cb7d048c97484112474c0e2ee89a6a78660b7 (patch) | |
tree | 815cd181bcc2452fc633cbb72c0f57d06e8f04fc | |
parent | 1f234bd9525be263ea89037096abf39d136da77a (diff) | |
download | extreload-074cb7d048c97484112474c0e2ee89a6a78660b7.tar.bz2 |
main: Show help output with -h/--help
Add `:arg-parser` to the `:socket-url` definition because 'unix-opts'
requires it in order to display the "SOCKET_URL" `:meta-var` in the help
output.
-rw-r--r-- | l/src/main.lisp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/l/src/main.lisp b/l/src/main.lisp index 5ea0384..99a60d0 100644 --- a/l/src/main.lisp +++ b/l/src/main.lisp @@ -8,6 +8,7 @@ (:name :socket-url :description "DevTools protocol WebSocket URL" :long "socket-url" + :arg-parser #'identity :meta-var "SOCKET_URL") (:name :help :description "print this help menu" @@ -20,7 +21,13 @@ (defun main () (multiple-value-bind (options free-args) (opts:get-opts) - ; (when-option (options :help)) + (when-option (options :help) + (opts:describe + :usage-of "extreload" + :args "EXTENSION_ID...") + + (opts:exit 64)) + (when-option (options :version) (format t "~a~%" (asdf:component-version (asdf:find-system :extreload))) |