A setting for parsing and documenting a single value.
Constructors
SettingsettingDasheds :: ![Dashed]Which dashed values are required for parsing
No dashed values means this is an argument.
settingReaders :: ![Reader a]Which readers should be tried to parse a value from a string
settingTryArgument :: !BoolWhether the readers should be used to parsed arguments
settingSwitchValue :: !Maybe aWhat value to parse when the switch exists.
Nothing means this is not a switch.
settingTryOption :: !BoolWhether the dasheds should be tried together with the readers as options.
settingEnvVars :: !Maybe (NonEmpty EnvVarSetting)Which env vars can be read.
settingConfigVals :: !Maybe (NonEmpty (ConfigValSetting a))Which and how to parse config values
settingDefaultValue :: !Maybe (a, String)Default value, if none of the above find the setting.
settingExamples :: ![String]Example values
settingHidden :: !BoolWhether to hide docs
settingMetavar :: !Maybe MetavarWhich metavar should be show in documentation
settingHelp :: !Maybe StringsettingCompleter :: !Maybe Completer