Copyright | (c) 2023 Dmitrii Kovanikov |
---|---|
License | MPL-2.0 |
Maintainer | Dmitrii Kovanikov <kovanikov@gmail.com> |
Stability | Experimental |
Portability | Portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
CLI parser for the --colour
and --no-colour
options.
Since: 0.1.0.0
Synopsis
Documentation
data ColourOption Source #
Data type that tells whether the user wants the colouring option enabled, disabled or autodetected.
See colourOptionP
for the parser of this option.
Since: 0.1.0.0
Instances
colourOptionP :: Parser ColourOption Source #
A CLI option parser for the desired coloured output mode in the terminal.
It parses --colour
and --no-colour
flags explicitly. Otherwise, it defaults
to Auto
.
Since: 0.1.0.0