cli-arguments-0.4.0.0: A library to process command line arguments in some more convenient way.
Copyright(c) OleksandrZhabenko 2021-2022
LicenseMIT
Maintainerolexandr543@yahoo.com
StabilityExperimental
Safe HaskellNone
LanguageHaskell2010

CLI.Arguments

Description

A library to process command line arguments in some more convenient way.

Synopsis

Documentation

data Arguments Source #

Instances

Instances details
Eq Arguments Source # 
Instance details

Defined in CLI.Arguments

Show Arguments Source # 
Instance details

Defined in CLI.Arguments

args2Args1 Source #

Arguments

:: FirstChars

A pair of the first characters of the starting group delimiter (the same for all Strings in the all CLSpecifications) and the probable its modification (the first character of the last delimiter).

-> CLSpecifications 
-> [String] 
-> Args 

args2Args3'1 Source #

Arguments

:: FirstChars

A pair of the first characters of the starting group delimiter (the same for all Strings in the all CLSpecifications) and the probable its modification (the first character of the last delimiter).

-> (Args, Args, Args) 
-> CLSpecifications 
-> [String] 
-> (Args, Args, Args) 

args2Args31 Source #

Arguments

:: FirstChars

A pair of the first characters of the starting group delimiter (the same for all Strings in the all CLSpecifications) and the probable its modification (the first character of the last delimiter).

-> CLSpecifications 
-> [String] 
-> (Args, Args, Args) 

args2ArgsFilteredG Source #

Arguments

:: (Arguments -> Bool)

A predicate to check which Arguments must be kept in the result.

-> CLSpecifications 
-> [String] 
-> Args 

This function can actually parse the command line arguments being the [String].

args2ArgsFilteredG1 Source #

Arguments

:: FirstChars

A pair of the first characters of the starting group delimiter (the same for all Strings in the all CLSpecifications) and the probable its modification (the first character of the last delimiter).

-> (Arguments -> Bool)

A predicate to check which Arguments must be kept in the result.

-> CLSpecifications 
-> [String] 
-> Args 

This function can actually parse the command line arguments being the [String].

args2ArgsFiltered :: CLSpecifications -> [String] -> Args Source #

This function can actually parse the command line arguments being the [String].

takeCs1 Source #

Arguments

:: FirstChars

A pair of the first characters of the starting group delimiter (the same for all Strings in the all CLSpecifications) and the probable its modification (the first character of the last delimiter).

-> CLSpecifications 
-> [String] 
-> Args 

takeArgsSortedBy Source #

Arguments

:: (Arguments -> Bool)

A predicate to check which Arguments must be kept in the result.

-> (Arguments -> Arguments -> Ordering)

A compare-like implementation for Arguments. If needed you can implement your own Ord instance for Arguments and use it here. Here can be partial, just for Cs.

-> CLSpecifications 
-> [String] 
-> Args 

takeArgs1SortedBy Source #

Arguments

:: FirstChars

A pair of the first characters of the starting group delimiter (the same for all Strings in the all CLSpecifications) and the probable its modification (the first character of the last delimiter).

-> (Arguments -> Bool)

A predicate to check which Arguments must be kept in the result.

-> (Arguments -> Arguments -> Ordering)

A compare-like implementation for Arguments. If needed you can implement your own Ord instance for Arguments and use it here. Here can be partial, just for Cs.

-> CLSpecifications 
-> [String] 
-> Args 

takeCsSortedBy Source #

Arguments

:: (Arguments -> Arguments -> Ordering)

A compare-like implementation for Arguments. If needed you can implement your own Ord instance for Arguments and use it here. Here can be partial, just for Cs.

-> CLSpecifications 
-> [String] 
-> Args 

takeCs1SortedBy Source #

Arguments

:: FirstChars

A pair of the first characters of the starting group delimiter (the same for all Strings in the all CLSpecifications) and the probable its modification (the first character of the last delimiter).

-> (Arguments -> Arguments -> Ordering)

A compare-like implementation for Arguments. If needed you can implement your own Ord instance for Arguments and use it here. Here can be partial, just for Cs.

-> CLSpecifications 
-> [String] 
-> Args 

takeBsSortedBy Source #

Arguments

:: (Arguments -> Arguments -> Ordering)

A compare-like implementation for Arguments. If needed you can implement your own Ord instance for Arguments and use it here. Here can be partial, just for Bs.

-> CLSpecifications 
-> [String] 
-> Args 

takeAsSortedBy Source #

Arguments

:: (Arguments -> Arguments -> Ordering)

A compare-like implementation for Arguments. If needed you can implement your own Ord instance for Arguments and use it here. Here can be partial, just for As.

-> CLSpecifications 
-> [String] 
-> Args 

takeABCsArr Source #

Arguments

:: (CLSpecifications -> [String] -> Args)

A function to collect the Args

-> CLSpecifications 
-> [String] 
-> Array Int Arguments 

For empty list of Strings returns empty array that has no elements. Trying to index it always returns error and can cause segmentation fault in the running program or interpreter (GHCi).

takeCsArr :: CLSpecifications -> [String] -> Array Int Arguments Source #

For empty list of Strings returns empty array that has no elements. Trying to index it always returns error and can cause segmentation fault in the running program or interpreter (GHCi).

takeCs1Arr Source #

Arguments

:: FirstChars

A pair of the first characters of the starting group delimiter (the same for all Strings in the all CLSpecifications) and the probable its modification (the first character of the last delimiter).

-> CLSpecifications 
-> [String] 
-> Array Int Arguments 

For empty list of Strings returns empty array that has no elements. Trying to index it always returns error and can cause segmentation fault in the running program or interpreter (GHCi).

takeBsArr :: CLSpecifications -> [String] -> Array Int Arguments Source #

For empty list of Strings returns empty array that has no elements. Trying to index it always returns error and can cause segmentation fault in the running program or interpreter (GHCi).

takeAsArr :: CLSpecifications -> [String] -> Array Int Arguments Source #

For empty list of Strings returns empty array that has no elements. Trying to index it always returns error and can cause segmentation fault in the running program or interpreter (GHCi).

takeABCsArrSortedBy Source #

Arguments

:: ((Arguments -> Arguments -> Ordering) -> CLSpecifications -> [String] -> Args) 
-> (Arguments -> Arguments -> Ordering)

A compare-like implementation for Arguments. If needed you can implement your own Ord instance for Arguments and use it here. Here can be partial, just for Cs.

-> CLSpecifications 
-> [String] 
-> Array Int Arguments 

For empty list of Strings returns empty array that has no elements. Trying to index it always returns error and can cause segmentation fault in the running program or interpreter (GHCi).

takeCsArrSortedBy Source #

Arguments

:: (Arguments -> Arguments -> Ordering)

A compare-like implementation for Arguments. If needed you can implement your own Ord instance for Arguments and use it here. Here can be partial, just for Cs.

-> CLSpecifications 
-> [String] 
-> Array Int Arguments 

For empty list of Strings returns empty array that has no elements. Trying to index it always returns error and can cause segmentation fault in the running program or interpreter (GHCi).

takeCs1ArrSortedBy Source #

Arguments

:: FirstChars

A pair of the first characters of the starting group delimiter (the same for all Strings in the all CLSpecifications) and the probable its modification being also the first character.

-> (Arguments -> Arguments -> Ordering)

A compare-like implementation for Arguments. If needed you can implement your own Ord instance for Arguments and use it here. Here can be partial, just for Cs.

-> CLSpecifications 
-> [String] 
-> Array Int Arguments 

For empty list of Strings returns empty array that has no elements. Trying to index it always returns error and can cause segmentation fault in the running program or interpreter (GHCi).

takeBsArrSortedBy Source #

Arguments

:: (Arguments -> Arguments -> Ordering)

A compare-like implementation for Arguments. If needed you can implement your own Ord instance for Arguments and use it here. Here can be partial, just for Bs.

-> CLSpecifications 
-> [String] 
-> Array Int Arguments 

For empty list of Strings returns empty array that has no elements. Trying to index it always returns error and can cause segmentation fault in the running program or interpreter (GHCi).

takeAsArrSortedBy Source #

Arguments

:: (Arguments -> Arguments -> Ordering)

A compare-like implementation for Arguments. If needed you can implement your own Ord instance for Arguments and use it here. Here can be partial, just for As.

-> CLSpecifications 
-> [String] 
-> Array Int Arguments 

For empty list of Strings returns empty array that has no elements. Trying to index it always returns error and can cause segmentation fault in the running program or interpreter (GHCi).