fixup command-line-option

This commit is contained in:
Renaud Casenave-Péré 2015-05-05 13:28:18 +02:00
parent 2fda251cd7
commit e73a96de44

View file

@ -153,7 +153,7 @@
(defun get-command-line-option (argv optname &optional default) (defun get-command-line-option (argv optname &optional default)
"Return the option designated by `optname' from the command-line `argv'." "Return the option designated by `optname' from the command-line `argv'."
(let ((opt (member optname argv :test #'equal))) (let ((opt (member optname argv :test #'equal)))
(or opt default))) (or (and (cdr opt) (second opt)) default)))
(defun get-command-line-option-number (argv optname &optional default) (defun get-command-line-option-number (argv optname &optional default)
"Return the option designated by `optname' from the command-line `argv' as a number." "Return the option designated by `optname' from the command-line `argv' as a number."