You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Case handling for Choice help output (values forced to lowercase) #588
The --help casing was fixed in #641, but the invalid-choice error still lists lowercased values (e.g. 'bogus' is not one of 'equity', 'forex', ... for lean data generate --security-type bogus), since Click 8.2 builds that message from the casefolded choices too. I have a small follow-up that overrides get_invalid_choice_message in CaseInsensitiveChoice, with tests for Click 8.1 and 8.5. Happy to open a PR if that's useful.
Activity
Amadeus-22 commentedon Sep 29, 2026
The
--helpcasing was fixed in #641, but the invalid-choice error still lists lowercased values (e.g.'bogus' is not one of 'equity', 'forex', ...forlean data generate --security-type bogus), since Click 8.2 builds that message from the casefolded choices too. I have a small follow-up that overridesget_invalid_choice_messageinCaseInsensitiveChoice, with tests for Click 8.1 and 8.5. Happy to open a PR if that's useful.