optparse-applicative v0.16.0.0 Release Notes
Release Date: 2020-08-14 // over 3 years ago-
โ Add
Options.Applicative.NonEmpty.some1
function, which parses options the same assome1
from base, but doesn't cause duplicates in the usage texts.Further improve help text generation in the presence of optional values when nesting is involved, and many and some when displayed with a suffix.
โ Add "global" options to the usage texts for subcommands. When using subcommands, a "global options" section can now appear below the options and commands sections.
Global options are off by default, to enable them, use the
helpShowGlobals
modifier.The
noGlobal
builder will suppress a single option being displayed in the global options list.Fixes issues: * # 175 - List detailed subparser documentation with
--help
* # 294 - Displaying global options when listing options for a command. * # 359 - Subcommand help text lacks required parent command arguments- ๐ Allow the
--help
option to take the name of a command. Usage without any arguments is the same, but now, when an argument is given, if it is the name of a currently reachable command, the help text for that command will be show.
Fixes issues: * # 379 - cmd --help subcmd is not the same as cmd subcmd --help
โก๏ธ Updated dependency bounds.
โ Add builder for the all positional parser policy.
โ Remove deprecated functions
- nullOption
- execParserMaybe
- customExecParserMaybe