Copyright | (c) OleksandrZhabenko 2021 |
---|---|
License | MIT |
Maintainer | olexandr543@yahoo.com |
Stability | Experimental |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
A library to process command line arguments in some more convenient way.
Synopsis
- data Arguments
- type Args = [Arguments]
- type Specification = (Delimiter, GQtyArgs)
- type CLSpecifications = [Specification]
- type Delimiter = String
- type GQtyArgs = Int
- isA :: Arguments -> Bool
- isB :: Arguments -> Bool
- isC :: Arguments -> Bool
- nullArguments :: Arguments -> Bool
- notNullArguments :: Arguments -> Bool
- b1Args2AArgs :: Arguments -> Arguments
- args2Args :: CLSpecifications -> [String] -> Args
- args2ArgsFiltered :: CLSpecifications -> [String] -> Args
Documentation
type Specification = (Delimiter, GQtyArgs) Source #
type CLSpecifications = [Specification] Source #
nullArguments :: Arguments -> Bool Source #
notNullArguments :: Arguments -> Bool Source #
b1Args2AArgs :: Arguments -> Arguments Source #
args2ArgsFiltered :: CLSpecifications -> [String] -> Args Source #
This function can actually parse the command line arguments being the [String
] so that some of them will disappear
because of the CLSpecifications
provided and the order of the arguments.