BSD-3-Clause licensed by Jens Petersen
Maintained by

Module documentation for 0.1.3

This version can be pinned in stack with:simple-cmd-args-0.1.3@sha256:e1345f64fc03030694b8d6cb628d7132b11614b32dc94cdb722273384c8f6db0,1422


Hackage BSD license Stackage Lts Stackage Nightly Build status

A thin layer over optparse-applicative that avoids type plumbing for subcommands by using Parser (IO ()).


import SimpleCmdArgs
import Control.Applicative (some)
import SimpleCmd (cmd_)

main =
  simpleCmdArgs Nothing "my example tool" "Longer description..." $
    [ Subcommand "echo" "Print name" $ putStrLn <$> strArg "NAME"
    , Subcommand "ls" "Touch FILE" $ cmd_ "ls" <$> some (strArg "FILE...")

See more examples.



simple-cmd-args uses PVP Versioning.

0.1.3 (2019-09-12)

  • export <|>

0.1.2 (2019-05-24)

  • add flagWith and flagWith’
  • export Parser, auto, optional

0.1.1 (2019-04-08)

  • add switchWith, strOptionWith, optionWith, optionalWith, strOptionalWith, argumentWith
  • export simpleCmdArgsWithMods

  • fix and improve haddock documentation


  • Initial release with subcommands and option Mod functions
Used by 2 packages in nightly-2019-09-21(full list with versions):
comments powered byDisqus