(defun option-present (option-name parsed-options)
(find option-name parsed-options :key #'car))
-(defun option-argument (option-name parsed-options)
- (cadr (assoc option-name parsed-options)))
+(defun option-argument (option-name parsed-options &optional default)
+ (if
+ (option-present option-name parsed-options)
+ (cadr (assoc option-name parsed-options))
+ default))
(defun option-arguments (option-name parsed-options)
(mapcar #'cadr (remove option-name parsed-options :key #'car :test-not #'eql)))