Skip to content

Instantly share code, notes, and snippets.

@arathnim
Created February 27, 2018 23:52
Show Gist options
  • Save arathnim/d7f328e21d32bc409a03c28ca6f6aa24 to your computer and use it in GitHub Desktop.
Save arathnim/d7f328e21d32bc409a03c28ca6f6aa24 to your computer and use it in GitHub Desktop.
CLI flag DSL
(defflag width :long "width" :short "w" :parse integer)
(defflag height :long "height" :short "h" :parse integer)
(defflag user :long "user" :short "u" :parse nil)
(defflag host :long "host" :short "H" :parse valid-hostname)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment