Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/options.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,16 @@
(write-string (call-next-method) s)
(format s ":_files")))

(defclass option-csv (option-string)
()
(:documentation "An option which represents a comma-separated list"))

(defmethod make-option ((kind (eql :csv)) &rest rest)
(apply #'make-instance 'option-csv rest))

(defmethod finalize-option ((o option-csv) &key)
(setf (option-value o) (cl-ppcre:split "," (option-value o))))

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The cl-ppcre system is not a direct or indirect dependency for clingon and this won't work.

Since clingon already depends on split-sequence we should probably use that instead.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, makes sense.


Comment thread
dnaeon marked this conversation as resolved.
;;;;
;;;; Boolean options
;;;;
Expand Down