optparse-applicative v0.2.0 Release Notes
Release Date: 2012-07-23 // almost 12 years ago-
๐ Parser is now an instance of Alternative. This makes it possible to build ๐ certain complex parsers that were not definable before. See โ
tests/Examples/Alternatives.hs
for a simple example.โ Removed
multi
modifier. You can now use themany
orsome
methods from ๐Alternative
, instead, to create parsers for options that can appear more than once.โ Added new
flag'
builder that returns a flag without a default value. 0๏ธโฃ Although flags without default values were not useful before, with the addition ofAlternative
combinators, they do have valid use cases.โ Added new
internal
modifier for options. An internal option is completely invisible in the help text.โ Added a new
customExecParser
function, which takes an additional ๐ParserPrefs
parameter. At the moment,ParserPrefs
can only be used to control how many-valued option metavars are displayed in the help text. Setting ๐ itsmultiSuffix
field to e.g....
will result in anarguments
parser description like[METAVAR]...
.๐ Fixed bugs
- #6 - "arguments" swallows options
- #5 - Help formatting for "arguments" misleading