Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion .github/workflows/haskell-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ on:
jobs:
linux:
name: Haskell-CI - Linux - ${{ matrix.compiler }}
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
timeout-minutes:
60
container:
Expand All @@ -28,6 +28,21 @@ jobs:
strategy:
matrix:
include:
- compiler: ghc-9.12.1
compilerKind: ghc
compilerVersion: 9.12.1
setup-method: ghcup
allow-failure: false
- compiler: ghc-9.10.1
compilerKind: ghc
compilerVersion: 9.10.1
setup-method: ghcup
allow-failure: false
- compiler: ghc-9.8.4
compilerKind: ghc
compilerVersion: 9.8.4
setup-method: ghcup
allow-failure: false
- compiler: ghc-9.6.1
compilerKind: ghc
compilerVersion: 9.6.1
Expand Down
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
## Version 0.19.0.0
## Version 0.19.0.0 (31 March 2025)

- Add `briefHangPoint` modifier. This allows one to specify the command length
after which the rendering will change from aligned with the end of the
command name to being indented on the next line.

- Add `parserOptionGroup` for grouping Options together, similar to command
groups. Requires the breaking change of adding the `propGroup :: OptGroup`
field to `OptProperties`.


## Version 0.18.1.0 (29 May 2023)

- Change pretty printer layout algorithm used.
Expand Down
5 changes: 4 additions & 1 deletion optparse-applicative.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: optparse-applicative
version: 0.18.1.0
version: 0.19.0.0
synopsis: Utilities and combinators for parsing command line options
description:
optparse-applicative is a haskell library for parsing options
Expand Down Expand Up @@ -51,6 +51,9 @@ extra-source-files: CHANGELOG.md
homepage: https://github.com/pcapriotti/optparse-applicative
bug-reports: https://github.com/pcapriotti/optparse-applicative/issues
tested-with:
GHC==9.12.1
GHC==9.10.1
GHC==9.8.4
GHC==9.6.1
GHC==9.4.4
GHC==9.2.7
Expand Down
4 changes: 3 additions & 1 deletion src/Options/Applicative/Common.hs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ searchArg prefs arg =

ArgReader rdr ->
fmap pure . lift . lift $ runReadM (crReader rdr) arg
_ -> mzero

_ ->
mzero

where
cmdMatches cs
Expand Down
Loading