Skip to content

This PR updates docs to clarify Click’s flag special-case: for is_flag=True options with flag_value, default=True means “activated by default” and therefore defaults to flag_value. For negative boolean flags, prefer the --foo/--no-foo pattern.#3255

Closed
shivamtiwari3 wants to merge 2 commits intopallets:mainfrom
shivamtiwari3:fix/3111

Conversation

@shivamtiwari3
Copy link
Copy Markdown

No description provided.

@kdeldycke
Copy link
Copy Markdown
Collaborator

Low-effort PR, but just for the sake of it, something similar has already been proposed at: https://github.com/pallets/click/pull/3239/changes#diff-2e046795c81fb2bcc2667705f88c6421fa988047f147ddb2333ec8da5f638b7bR386-R390

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 24, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants