mirror of
https://github.com/hymkor/lispect.git
synced 2026-09-05 08:37:49 -04:00
README and example: wrote about $EXECUTABLE_NAME
This commit is contained in:
@@ -11,7 +11,7 @@ Lispect
|
|||||||
(block main
|
(block main
|
||||||
(if (< (length args) 2)
|
(if (< (length args) 2)
|
||||||
(progn
|
(progn
|
||||||
(format (error-output) "Usage: lispect ~A HOSTNAME PASSWORD~%" $PROGRAM_NAME)
|
(format (error-output) "Usage: ~A ~A HOSTNAME PASSWORD~%" $EXECUTABLE_NAME $PROGRAM_NAME)
|
||||||
(return-from main nil)
|
(return-from main nil)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@@ -64,7 +64,9 @@ Parameters enclosed in curly braces {...} are optional and can be omitted.
|
|||||||
- `args`
|
- `args`
|
||||||
- The list of command line arguments
|
- The list of command line arguments
|
||||||
- `$PROGRAM_NAME`
|
- `$PROGRAM_NAME`
|
||||||
- The name of the script
|
- The path of the script
|
||||||
|
- `$EXECUTABLE_NAME`
|
||||||
|
- The path of the executable of lispect
|
||||||
|
|
||||||
Other functions are defined on [ISLisp]
|
Other functions are defined on [ISLisp]
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
(block main
|
(block main
|
||||||
(if (< (length args) 2)
|
(if (< (length args) 2)
|
||||||
(progn
|
(progn
|
||||||
(format (error-output) "Usage: lispect ~A HOSTNAME PASSWORD~%" $PROGRAM_NAME)
|
(format (error-output) "Usage: ~A ~A HOSTNAME PASSWORD~%" $EXECUTABLE_NAME $PROGRAM_NAME)
|
||||||
(return-from main nil)
|
(return-from main nil)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user