cli-arguments-0.7.0.0: A library to process command line arguments in some more convenient way.
Copyright(c) OleksandrZhabenko 2021-2023
LicenseMIT
Maintaineroleksandr.zhabenko@yahoo.com
StabilityExperimental
Safe HaskellSafe-Inferred
LanguageHaskell2010

CLI.Arguments.Sorted

Description

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

Documentation

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 it 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 it 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 it 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 it 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 it 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 it can be partial, just for As.

-> CLSpecifications 
-> [String] 
-> Args