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
I would like to have dots in option names. As click requires option names to be valid python identifiers, I would like to use unexposed options to make dots in option names possible, and a custom callback to store the option name somewhere:
Ideally I would love a simple way to use non identifier option names, like proposed in #2433.
In the meantime I would suggest to allow Option.name to have its original value instead of None for unexposed option. I would volunteer for a PR if this is accepted.
What do you think?
Python version: 3.12
Click version: 8.1.7
The text was updated successfully, but these errors were encountered:
I would like to have dots in option names. As click requires option names to be valid python identifiers, I would like to use unexposed options to make dots in option names possible, and a custom callback to store the option name somewhere:
In that situation, in the callback context,
option.name
isNone
if the original option name is not a valid identifier:I suppose this is due to those lines:
click/src/click/core.py
Lines 2594 to 2595 in 99015e1
Ideally I would love a simple way to use non identifier option names, like proposed in #2433.
In the meantime I would suggest to allow
Option.name
to have its original value instead ofNone
for unexposed option. I would volunteer for a PR if this is accepted.What do you think?
The text was updated successfully, but these errors were encountered: