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
This is not really a bug report but a "behavior note". As requested by Brian, I created an issue here for further reference. You may want to mention it in the README section.
Hey @nguyenvulong! Thank you for opening up this issue! I'm actually thinking about tackling it in a similar way here in Cyclopts. Both App and Parameter would take in an optional argument, name_transform, which defaults to the following function:
app = App(
name_transform=lambda name: name, # don't modify the name at all. This applies to command names.
default_parameter=Parameter(name_transform=lambda name: name), # This applies to parameter names.
)
This is not really a bug report but a "behavior note". As requested by Brian, I created an issue here for further reference. You may want to mention it in the
README
section.Original discussion fastapi/typer#233 (comment)
This behavior comes from Click
The workaround is using a
lambda
function as mentioned here fastapi/typer#341 (comment)I think if there're many requests from user, please consider adding an option to keep the opt name as-is. Thank you.
The text was updated successfully, but these errors were encountered: