Skip to content

Boolean options should recognize --no- prefix to toggle them #6846

@blueyed

Description

@blueyed

E.g. with --showlocals in addopts it should be possible to use --no-showlocals to disable it for the current run.

This might be achievable in general by extending argparse's action for bools/flags.

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: configrelated to config handling, argument parsing and config filetype: enhancementnew feature or API change, should be merged into features branch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions