Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
Represents possible options from the cmdline
Options | |
|
Represents an execution mode for the program. One can run quoridor at local play, server host or client join modes
getOptions :: [String] -> IO Options Source
Given the args from the cmdline, returns them parsed into an Options data value. It runs in the IO monad to allow the ability to exit the program if something fails in the parsing (upon which, a usageInfo will be displayed)