-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Multi-value flags broken by recent change #2292
Milestone
Comments
Happy to review a PR |
hashstat
pushed a commit
to hashstat/click
that referenced
this issue
May 24, 2022
Allows creating options with is_flag=True and multiple=True if flag_value is also set to a non-bool value. See pallets#2292
hashstat
pushed a commit
to hashstat/click
that referenced
this issue
May 24, 2022
Allows creating options with is_flag=True and multiple=True if flag_value is also set to a non-bool value. Fixes pallets#2292
hashstat
pushed a commit
to hashstat/click
that referenced
this issue
May 24, 2022
Allow creating options with is_flag=True and multiple=True if flag_value is also set to a non-bool value. Fixes pallets#2292
6 tasks
This was referenced Jun 16, 2022
Was this fixed? |
marcosfelt
added a commit
to sustainable-processes/multitask
that referenced
this issue
Aug 17, 2022
@marcosfelt Fix exists in PR #2293 by @hashstat but has not been merged. @davidism could you review? It's really concise PR, just being more specific in raising an exception. PR also diligently adds test case for the feature. |
hashstat
pushed a commit
to hashstat/click
that referenced
this issue
Oct 27, 2022
Allow creating options with is_flag=True and multiple=True if flag_value is also set to a non-bool value. Fixes pallets#2292
hashstat
pushed a commit
to hashstat/click
that referenced
this issue
Jan 26, 2023
Allow creating options with is_flag=True and multiple=True if flag_value is also set to a non-bool value. Fixes pallets#2292
6 tasks
This was referenced Jul 3, 2023
# for free
to subscribe to this conversation on GitHub.
Already have an account?
#.
A recent change (#2248), introduced in version 8.1.3, breaks a feature that allowed flag options to be used as aliases for multi-value options.
Here's an example that demonstrates two uses of the feature:
As of version 8.1.3, a TypeError is raised:
But it works great in version 8.1.2 and earlier:
Environment:
The text was updated successfully, but these errors were encountered: