option package:cabal-install

option x p will either parse p or return x without consuming any input.
The optional stanza type (test suite or benchmark), if it is one.
optional p optionally parses p and always returns ().
Fields for the 'program-default-options' section.
Command line options for nix-style / v2 commands. The commands take a lot of the same options, which affect how install plan is constructed.
Reuse a command line OptionField as a config file FieldDescr.
Reuse a bunch of command line OptionFields as config file FieldDescrs.
Like projectConfigPackageGlobs but optional in the sense that file globs are allowed to match nothing. The primary use case for this is to be able to say optional-packages: */ to automagically pick up deps that we unpack locally without erroring when there aren't any.
As almost all commands use ProjectFlags but not all can honour "ignore-project" flag, provide this utility to remove the flag parsing from the help message.