mirror of
https://github.com/hymkor/lispect.git
synced 2026-08-27 20:36:34 -04:00
example.lsp: use *argv*, *program-name*, etc
This commit is contained in:
+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