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
Closed
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.#3255shivamtiwari3 wants to merge 2 commits intopallets:mainfrom
shivamtiwari3 wants to merge 2 commits intopallets:mainfrom
Conversation
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.