Raymond Toy pushed to branch master at cmucl / cmucl

Commits:

3 changed files:

Changes:

  • src/code/commandline.lisp
    ... ... @@ -394,3 +394,17 @@
    394 394
     
    
    395 395
     (defswitch "-help" #'help-switch-demon
    
    396 396
       "Same as -help.")
    
    397
    +
    
    398
    +(defun version-switch-demon (switch)
    
    399
    +  (declare (ignore switch))
    
    400
    +  (format t "~A~%" (lisp-implementation-version))
    
    401
    +  (ext:quit))
    
    402
    +
    
    403
    +(defswitch "version" #'version-switch-demon
    
    404
    +  "Prints the cmucl version and exits")
    
    405
    +
    
    406
    +;; Make --version work for the benefit of those who are accustomed to
    
    407
    +;; GNU software.
    
    408
    +(defswitch "-version" #'version-switch-demon
    
    409
    +  "Prints the cmucl version and exits; same as -version")
    
    410
    +

  • src/code/save.lisp
    ... ... @@ -336,8 +336,12 @@
    336 336
                            *gc-verbose* nil))
    
    337 337
     	       (when (and process-command-line
    
    338 338
     			  (or (find-switch "help")
    
    339
    -			      (find-switch "-help")))
    
    340
    -		 ;; Don't load any init files if -help or --help is given
    
    339
    +			      (find-switch "-help")
    
    340
    +			      (find-switch "version")
    
    341
    +			      (find-switch "-version")))
    
    342
    +		 ;; Don't load any init files if -help, --help,
    
    343
    +		 ;; -version, or --version is given.  These exit right
    
    344
    +		 ;; away, so loading the init file is wasteful.
    
    341 345
     		 (setf site-init nil)
    
    342 346
     		 (setf load-init-file nil))
    
    343 347
     	       (when (and site-init
    

  • src/i18n/locale/cmucl.pot
    ... ... @@ -6149,6 +6149,10 @@ msgstr ""
    6149 6149
     msgid "Same as -help."
    
    6150 6150
     msgstr ""
    
    6151 6151
     
    
    6152
    +#: src/code/commandline.lisp
    
    6153
    +msgid "Prints the cmucl version and exits"
    
    6154
    +msgstr ""
    
    6155
    +
    
    6152 6156
     #: src/code/env-access.lisp
    
    6153 6157
     msgid ""
    
    6154 6158
     "Returns information about the symbol VAR in the lexical environment ENV.\n"