optparse-simple: Simple interface to optparse-applicative

[ bsd3, library, options ] [ Propose Tags ]

Please see the README at https://www.stackage.org/package/optparse-simple

[Skip to Readme]
Versions [faq] 0.0.0, 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.1.0, 0.1.1,
Change log ChangeLog.md
Dependencies base (==4.*), gitrev, optparse-applicative, template-haskell, transformers (>=0.4) [details]
License BSD-3-Clause
Copyright 2015-2017 FP Complete
Author FP Complete
Maintainer chrisdone@fpcomplete.com
Category Options
Home page https://github.com/fpco/optparse-simple#readme
Bug tracker https://github.com/fpco/optparse-simple/issues
Source repo head: git clone https://github.com/fpco/optparse-simple
Uploaded by MichaelSnoyman at Tue Nov 28 09:35:14 UTC 2017
Distributions Arch:, Debian:0.1.0, Fedora:0.1.0, LTSHaskell:, NixOS:, Stackage:
Downloads 11341 total (329 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2017-11-28 [all 1 reports]




Maintainer's Corner

For package maintainers and hackage trustees

Readme for optparse-simple-0.1.0

[back to package description]


Simple interface to optparse-applicative


Typical usage with no commands:

do (opts,()) <-
     simpleOptions "ver"
                   (flag () () (long "some-flag"))
   doThings opts

Typical usage with commands:

do (opts,runCmd) <-
     simpleOptions "ver"
                   (pure ()) $
     do addCommand "delete"
                   "Delete the thing"
                   (const deleteTheThing)
                   (pure ())
        addCommand "create"
                   "Create a thing"
                   (strOption (long "hello"))