New command line option --version to print version number.

This commit is contained in:
Juan Jose Garcia Ripoll 2009-11-10 00:06:26 +01:00
parent 6c380fba8e
commit 7b36d76089
2 changed files with 7 additions and 0 deletions

View file

@ -9,6 +9,9 @@ ECL 9.11.1:
- LOAD works on special files (/dev/null and the like).
- New command line option --version outputs the version number preceded
by the implementation name ("ECL 9.11.1" in this particular release).
* Bugs fixed:
- In single-threaded builds, ECL did not properly restore the signal mask

View file

@ -53,6 +53,10 @@ Usage: ecl [-? | --help]
("-h" 0 #0# :noloadrc)
("-norc" 0 nil :noloadrc)
("--" 0 nil :stop)
("--version" 0
(progn (setf quit 0)
(format *standard-output* "ECL ~A" (lisp-implementation-version)))
:noloadrc)
("-debug" 0 (setf si::*break-enable* t))
("-nodebug" 0 (setf si::*break-enable* nil))
("-eval" 1 (eval (read-from-string 1)))