Skip to content

Releases: pcapriotti/optparse-applicative

optparse-applicative 0.14.1

23 Feb 23:04
411087e
Compare
Choose a tag to compare
  • Updated dependency bounds.

  • Export HasName, HasCompleter, HasValue, and
    HasMetavar type classes.

  • Doc.

optparse-applicative 0.14.0

09 Jun 07:11
Compare
Choose a tag to compare
  • Upgrade str and related builders to be polymorphic over
    IsString. This allows Text and Bytestring to be used
    naturally with strOption and strArgument and friends.

    Note: This change may require additional type signatures
    in cases where the reader was necessary for type
    inference.

  • Export public API explicitly from Options.Applicative
    instead of re-exporting other modules.

    Note: Minor changes to exports were made in conjunction
    to this change. ParserHelp no longer requires an
    an extra import, and some internally used functions
    from Options.Applicative.Common are no longer
    exported from the main module.

  • Add Zsh and Fish completions with rich descriptions for
    options and commands.

    Use "--zsh-completion-script" and "fish-completion-script"
    to generate scripts for these shells.

  • Fix bash completions with quoted sections, tilde expansions
    and completions after "--".

  • Add suggestions to error message when a user mistypes a
    command or option.

  • Add style builder, for styling option descriptions.

  • Improve error message for options when a required argument
    is not supplied.

  • Fix #242 regarding flags with long options, where a flag given
    a long option could be interpreted incorrectly.

  • Fix noIntersperse to be more like its namesakes in other
    libraries. When on, options will be accepted until an argument
    is passed, after which all options will be treated as positional
    arguments.

  • Add forwardOptions builder, which will allow unknown options
    and flags to be passed to an argument builder.
    This is useful to mixed parsing environments, or wrappers to
    other commands.

  • Add Semigroup instances for Completer and Chunk.

  • Forwards compatibility with MonadFail proposal.

  • Doc

optparse-applicative 0.13.2

09 Mar 01:04
Compare
Choose a tag to compare
  • Updated dependency bounds.

  • Doc

optparse-applicative 0.13.1

10 Feb 06:22
Compare
Choose a tag to compare
  • Updated dependency bounds.
  • Add required test files to cabal package.
  • Doc

optparse-applicative 0.13.0

15 Aug 03:15
Compare
Choose a tag to compare
  • Implement command groups, which allow subcommands to have their own
    usage description.
  • Implement showHelpOnEmpty, which is similar to showHelpOnError, but only
    fires when a command or subcommand is begun, and suppresses the "Missing:"
    error text.
  • Fix ghc 8.0 warnings
  • Fix ghc 7.10 warnings
  • Bump dependency bounds
  • Add maybeReader function for convenient ReadM creation
  • Move eitherReader to Readers section (for better discoverability)
  • Fix hsubparser metavar override
  • Remove ComplError, which was dead code.
  • Reimplement Missing error generation, which overly complicated evalParser.
  • Export Semigroup instances for types which are also Monoids. Removes
    mappend synonym (<>) export, as it clashes with Semigroup exports.
    One may need to import Data.Monoid or Data.Semigroup when upgrading.
  • Use a Cabal test suite for tests, simplify test dependencies.

optparse-applicative 0.12.1

19 Jan 09:51
Compare
Choose a tag to compare
  • Updated dependency bounds.
  • Improve subparser contexts to improve usage error texts
  • Doc
  • Fixed bugs
    • #164 - Invalid options and invalid arguments after parser has succeeded not displaying
    • #146 - multi-word filename completion is broken

optparse-applicative 0.12.0

25 Sep 10:02
Compare
Choose a tag to compare
  • Add "missing" error condition descriptions when required flags and arguments
    are not provided.
  • Allow multiple short flags to be concatenated together behind a single
    hyphen, e.g. "-xcf".
  • Updated dependency bounds on process and ansi-wl-pprint.
  • Add Show and Eq instances to some types for easier debugging.
  • Add defaultPrefs, a default preferences value
  • Docs.

optparse-applicative 0.11.0.2

25 Sep 10:03
Compare
Choose a tag to compare
  • Updated dependency bounds.

optparse-applicative 0.11.0.1

05 Oct 17:03
Compare
Choose a tag to compare
  • Updated documentation.

optparse-applicative 0.11.0

04 Oct 19:03
Compare
Choose a tag to compare
  • Added Alternative instances for Chunk and ReadM.
  • The ReadM monad is now a ReaderT for the argument being parsed. User
    defined readers do not need to handle their argument explicitly, but can
    always access it using readerAsk.
  • Argument builders now take a ReadM parameter, just like options.
  • Fixed bugs
    • #106 - argument should perhaps use ReadM