name:                cmdlib
version:             0.1
x-revision: 1
synopsis:            a library for command line parsing & online help

description: An alternative to cmdargs, based on getopt. Comes with a powerful
             attribute system. Supports complex interfaces with many options
             and commands, with option & command grouping, while at the same
             time keeping simple things simple.

-- The license under which the package is released.
-- copyright:
license:             BSD3
license-file:        LICENSE

-- The package author(s).
author:              Petr Rockai
maintainer:          me@mornfall.net
category:            System
build-type:          Simple

extra-source-files: rectest.sh

-- Constraint on the version of Cabal needed to build this package.
cabal-version:       >=1.6

Library
  exposed-modules: System.Console.CmdLib
  other-modules: System.Console.CmdLib.Attribute
                 System.Console.CmdLib.Flag
                 System.Console.CmdLib.Command
                 System.Console.CmdLib.ADTs
                 System.Console.CmdLib.Record

  build-depends: base < 4.8, syb, mtl, split

flag test
  default:     False
  description: Build test binaries

Executable cmdlib-test
  if !flag(test)
     buildable: False
  main-is: testcmd.hs

Executable cmdlib-rectest
  if !flag(test)
     buildable: False
  main-is: testrec.hs