Copyright | (c) OleksandrZhabenko 2021-2023 |
---|---|
License | MIT |
Maintainer | oleksandr.zhabenko@yahoo.com |
Stability | Experimental |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
CLI.Arguments
Description
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
- type FirstCharacter = Char
- type FirstChars = (Char, Char)
- isA :: Arguments -> Bool
- isB :: Arguments -> Bool
- isC :: Arguments -> Bool
- nullArguments :: Arguments -> Bool
- notNullArguments :: Arguments -> Bool
- b1Args2AArgs :: Arguments -> Arguments
Documentation
Data to encode the possible cli-arguments of some logics below. The arguments are separated by the spaces characters one from another.
Constructors
A String | If for encoding of the argument just one |
B GQtyArgs Delimiter [String] | If there is a certain quantity of consequent arguments that indicates the one semantical value. |
C Delimiter [String] | If the quantity of the consequent arguments that forms a semantic value is not known, but they are enclosed by the delimiter or its modification. |
Instances
type Specification = (Delimiter, GQtyArgs) Source #
type CLSpecifications = [Specification] Source #
type FirstCharacter = Char Source #
type FirstChars = (Char, Char) Source #
nullArguments :: Arguments -> Bool Source #
notNullArguments :: Arguments -> Bool Source #
b1Args2AArgs :: Arguments -> Arguments Source #