Command line option parsers
There are several packages that want to simplify the task of writing command line parsers. Unfortunately, they are distributed across several Hackage categories. Here is an attempt to list them:
Package | Multi-mode | Extensions | Remark |
---|---|---|---|
cmdargs | X | TemplateHaskell, SYB generics, ViewPatterns, ... | unsafePerformIO
|
cmdlib | X | SYB generics | based on GetOpt |
cmdtheline | X | FlexibleInstances (although unnecessary) | shows help as man-page |
console-program | X | TemplateHaskell | configure options via files |
getflag | . | Haskell98 | like GetOpt but with Unix/Plan 9 option syntax |
hflags | |||
multiarg | |||
options | |||
optparse-applicative | X | . | Applicative Functor |
parseargs | |||
ReadArgs | |||
simpleargs | |||
yaop |