cli-arguments-0.5.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 HaskellSafe-Inferred
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