example.lsp: use *argv*, *program-name*, etc

This commit is contained in:
HAYAMA_Kaoru
2025-05-04 03:43:30 +09:00
parent ebdc6d7c20
commit 945d8903b9
+3 -3
View File
@@ -1,11 +1,11 @@
(catch 'fail (catch 'fail
(if (< (length ARGV) 2) (if (< (length ARGV) 2)
(progn (progn
(format (error-output) "Usage: ~A ~A USERNAME@DOMAIN PASSWORD~%" EXECUTABLE-NAME PROGRAM-NAME) (format (error-output) "Usage: ~A ~A USERNAME@DOMAIN PASSWORD~%" *executable-name* *program-name*)
(throw 'fail nil))) (throw 'fail nil)))
(let ((account (car ARGV)) (let ((account (car *argv*))
(password (cadr ARGV)) (password (cadr *argv*))
(sshpid nil)) (sshpid nil))
(with-handler (with-handler