Skip to content

Add support for --no-option-options #2736

@fourpastmidnight

Description

@fourpastmidnight

Many *nix programs have options that follow this pattern:

   --option=yes|no
   --(no-)option

I know that one could easily just supply a boolean option, as shown, but often times an additional option is accepted that prefixes the main option name with no- to indicate the option should not be used/present.

It would be great to support that.

Another way this might be supported is via custom option processing, such as adding an alias for --no-option and detecting the use of the alias, and then allowing for the customization of help to properly document the API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions