The package optparse-applicative provides a Haskell library for parsing options at the command line. A minimal example, providing only minimal help, is as follows:
1 2 3 4 5 6 |
module Main (main) where import Options.Applicative main :: IO (() -> ()) main = execParser (info helper fullDesc) |
On Windows 10, the ‘Usage:’ help text depends on how the executable is called and can include a filename extension. For example, at the Command Prompt, a test executable, opTest.exe, […]