txt-sushi-0.6.0: The SQL link in your *NIX chain

Portabilityportable
Stabilityexperimental
Maintainerkeithshep@gmail.com
Safe HaskellSafe-Inferred

Database.TxtSushi.CommandLineArgument

Description

Some functions for parsing command line args (TODO: evaluate what you're doing here against the arg parsing libraries on hackage)

Synopsis

Documentation

formatCommandLine :: CommandLineDescription -> StringSource

converts a command line description into a string version that you can show the user

data OptionDescription Source

a data structure for describing command line arguments

Constructors

OptionDescription 

Fields

isRequired :: Bool

determines if this is a required option or not

optionFlag :: String

What flag should we use. Eg: -pretty-output

argumentNames :: [String]

The name(s) to use for the argument(s).

minArgumentCount :: Int

the minimum number of args allowed

argumentCountIsFixed :: Bool

if true then minArgumentCount is the upper threshold