mirror of
https://github.com/hymkor/lispect.git
synced 2026-10-26 21:49:56 -04:00
example.lsp: use *argv*, *program-name*, etc
This commit is contained in:
1 parent
ebdc6d7c20
commit
945d8903b9
1 file changed
+3
-3
+3
-3
@@ -1,11 +1,11 @@
|
||||
(catch 'fail
|
||||
(if (< (length ARGV) 2)
|
||||
(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)))
|
||||
|
||||
(let ((account (car ARGV))
|
||||
(password (cadr ARGV))
|
||||
(let ((account (car *argv*))
|
||||
(password (cadr *argv*))
|
||||
(sshpid nil))
|
||||
|
||||
(with-handler
|
||||
|
||||
Reference in new issue
Block a user