Skip to content
This repository was archived by the owner on May 30, 2022. It is now read-only.
This repository was archived by the owner on May 30, 2022. It is now read-only.

More flexible handling for boolean arguments #36

@AhmedSoliman

Description

@AhmedSoliman

In argparse, we only generate an argument for the boolean to set to true but there is no way for the user to explicitly switch it off (pass False).

Our options:

  1. Generate a '--no-X' argument automatically to toggle the boolean. (opinionated decision)
  2. Give the user better control through the @argument to define the behaviour (needs spec)

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