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 the many or some 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 of Alternative 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 ๐Ÿ“œ its multiSuffix field to e.g. ... will result in an arguments parser description like [METAVAR]....

    • ๐Ÿ›  Fixed bugs

      • #6 - "arguments" swallows options
      • #5 - Help formatting for "arguments" misleading