registry-options-0.2.0.0: application options parsing
Safe HaskellSafe-Inferred
LanguageGHC2021

Data.Registry.Options.FieldConfiguration

Description

Configuration of fields from field names given as singleton string types For example in the `Parser "myField" MyType myField is used to create an option name like --my-field (by default)

Synopsis

Documentation

data FieldConfiguration Source #

These options are used at runtime to take a field name and build its short/long name + metavar

Constructors

FieldConfiguration 

Fields

defaultFieldConfiguration :: FieldConfiguration Source #

The default options are taking a Package1.Package2.camelCase name and - creating a short name = "c" - creating a long name = "camel-case" - creating a metavar = CAMELCASE