mirror of
https://github.com/hymkor/lispect.git
synced 2026-09-04 08:07:23 -04:00
example.lsp: use *argv*, *program-name*, etc
This commit is contained in:
+3
-3
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user