optparse-applicative icon indicating copy to clipboard operation
optparse-applicative copied to clipboard

Applicative option parser

Results 47 optparse-applicative issues
Sort by recently updated
recently updated
newest added

This MR contains a new `InfoMod` that allows to specify a version which can be requested with `-v` or `--version`. Open questions: - Is `version` a too generic name? Maybe...

Hey again! Hope your spring is going swell. Do you have some tips on how to achieve showing help-on-empty when subcommands and subparsers are involved? That is, given something that...

This almost completely addresses issue #315. I leverage the same mechanism as other completion scripts. There are some quirks however: - on a windows machine, due to limitations of [getProgName](https://www.stackage.org/haddock/lts-17.9/base-4.14.1.0/System-Environment.html#v:getProgName)...

This pr adds `mkCompleterWithOptions :: (String -> IO [CompletionItem]) -> Completer`, which allows the completer to disable unwanted shell behaviors like - adding a trailing slash to matches that coincide...

Sketched up the solution. It implies changes to core parser type, but tried to keep changes to API as minimal as possible. Atm it lacks necessary changes to parser docs...

This PR modifiers the pretty printer to improve the structure of the output for readability. Included in the change is the switch from `ansi-wl-pprint` to `prettyprinter`. The switch allows for...

Could optparse-applicative provide more help when combining parsers that have the same flag names. For example: ``` haskell mapOptName :: (OptName -> OptName) -> Parser a -> Parser a mapOptName...

enhancement

I have a parser accepting `--request` option, and when user accidentally uses it twice, the error message says: ``` Invalid option `--request' ``` It should probably report: ``` Duplicated option...

suggestion

Hi, given the highly structured and detailed data a well-polished option parser, one would really like to be able to use it to also create other bits of reference documentation...

Hi there, tl;dr: I was wondering whether you would be open to adapting the `prettyprinter` for `optparse-applicative` (instead of `ansi-wl-pprint`). --- # Longer, want to read I recently released a...