cookbook-2.3.2.0: Tiered general-purpose libraries with domain-specific applications.

Safe HaskellSafe-Inferred

Cookbook.Recipes.Cline

Synopsis

Documentation

parse :: String -> [Cline]Source

Parse a flat string into a list of Clines.

data Cline Source

Represents command-line options. Works on either arguments or flags.

Constructors

Flag Char 
Argument String String 

Instances

clineExtract :: [String] -> [Cline]Source

Extract arguments from a list of word-separated strings.

clArg :: String -> StringSource

Cleans a command line argument. If it's not a number, it will add a couple of dashes in front of it.