fixup command-line-option
This commit is contained in:
parent
2fda251cd7
commit
e73a96de44
1 changed files with 1 additions and 1 deletions
|
|
@ -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."
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue