Copyright | (c) OleksandrZhabenko 2021 |
---|---|
License | MIT |
Maintainer | olexandr543@yahoo.com |
Stability | Experimental |
Safe Haskell | None |
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
- args2Args3' :: (Args, Args, Args) -> CLSpecifications -> [String] -> (Args, Args, Args)
- args2Args3 :: CLSpecifications -> [String] -> (Args, Args, Args)
- args2ArgsFiltered :: CLSpecifications -> [String] -> Args
- takeCs :: CLSpecifications -> [String] -> Args
- takeBs :: CLSpecifications -> [String] -> Args
- takeAs :: CLSpecifications -> [String] -> Args
- takeCsSortedBy :: (Arguments -> Arguments -> Ordering) -> CLSpecifications -> [String] -> Args
- takeBsSortedBy :: (Arguments -> Arguments -> Ordering) -> CLSpecifications -> [String] -> Args
- takeAsSortedBy :: (Arguments -> Arguments -> Ordering) -> CLSpecifications -> [String] -> Args
- takeCsArr :: CLSpecifications -> [String] -> Array Int Arguments
- takeBsArr :: CLSpecifications -> [String] -> Array Int Arguments
- takeAsArr :: CLSpecifications -> [String] -> Array Int Arguments
- takeCsArrSortedBy :: (Arguments -> Arguments -> Ordering) -> CLSpecifications -> [String] -> Array Int Arguments
- takeBsArrSortedBy :: (Arguments -> Arguments -> Ordering) -> CLSpecifications -> [String] -> Array Int Arguments
- takeAsArrSortedBy :: (Arguments -> Arguments -> Ordering) -> CLSpecifications -> [String] -> Array Int Arguments
Documentation
type Specification = (Delimiter, GQtyArgs) Source #
type CLSpecifications = [Specification] Source #
nullArguments :: Arguments -> Bool Source #
notNullArguments :: Arguments -> Bool Source #
b1Args2AArgs :: Arguments -> Arguments Source #
args2Args3 :: CLSpecifications -> [String] -> (Args, Args, Args) 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.