Skip to content

Instantly share code, notes, and snippets.

@eraserhd
Created July 2, 2013 00:14
Show Gist options
  • Select an option

  • Save eraserhd/5905824 to your computer and use it in GitHub Desktop.

Select an option

Save eraserhd/5905824 to your computer and use it in GitHub Desktop.
(defstruct start-options
pivotal-story-id)
(defun parse-start-args (args)
(loop with options = (make-start-options)
until (null args)
do (cond
((equalp "-p" (first args))
(setf (start-options-pivotal-story-id options) (second args))
(setf args (cddr args)))
(t
(setf args (cdr args))))
finally (return options)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment