Created
June 24, 2013 00:31
-
-
Save samth/5847063 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang typed/racket | |
(define: *filename* : String "") | |
(define: *mode* : (U 'version 'unset 'do-something-useful) 'unset) | |
(command-line | |
#:program "mysuperprogram" | |
#:once-any | |
(("-v" "--version") "Prints the version of the program" | |
(set! *mode* 'version)) | |
#:once-each | |
(("-i" "--file") #{fname : String} | |
"The path to the file" | |
(set! *filename* fname))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment