homepage: https://github.com/juhp/simple-cmd-args
changelog-type: markdown
hash: 800dbb4389b906975e7858043ab9bcc3d8abde48bd7f214bc733c723067d5240
test-bench-deps: {}
maintainer: juhpetersen@gmail.com
synopsis: Simple command args parsing and execution
changelog: |
  # Changelog

  `simple-cmd-args` uses [PVP Versioning][1].

  0.1.0
  =====
  * Initial release with subcommands and option Mod functions

  [1]: https://pvp.haskell.org
basic-deps:
  base: ! '>=4 && <5'
  optparse-applicative: -any
all-versions:
- 0.1.0
author: Jens Petersen
latest: 0.1.0
description-type: markdown
description: |+
  # simple-cmd-args

  [![Hackage](https://img.shields.io/hackage/v/simple-cmd-args.svg)](https://hackage.haskell.org/package/simple-cmd-args)
  [![BSD license](https://img.shields.io/badge/license-BSD-blue.svg)](LICENSE)
  [![Stackage Lts](http://stackage.org/package/simple-cmd-args/badge/lts)](http://stackage.org/lts/package/simple-cmd-args)
  [![Stackage Nightly](http://stackage.org/package/simple-cmd-args/badge/nightly)](http://stackage.org/nightly/package/simple-cmd-args)
  [![Build status](https://secure.travis-ci.org/juhp/simple-cmd-args.svg)](https://travis-ci.org/juhp/simple-cmd-args)

  A thin layer over optparse-applicative that avoids type plumbing for
  the common use case of a commandline tool with subcommands,
  by using `Parser (IO ())`

  ## Usage

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

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

  See more [https://github.com/juhp/simple-cmd-args/tree/master/examples](examples/).

license-name: BSD-3-Clause

Update from Hackage at 2019-02-20T04:44:45Z
Update from Hackage at 2019-02-20T04:44:45Z
