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 seems like the same issue/an extension of #588
I'm making a CLI around an existing module which already has some defaults in it's arguments.
I didn't expect it but Click apparently always passes None for options if they are not set, instead of not passing them at all which is what I expected.
How can I best do this? Checking if an option == None doesn't really sound good.
Is there anything that can be done to enhance this?
The text was updated successfully, but these errors were encountered:
this is kind of annoying when trying to migrate beets to click with our optparse compatibility layer. We were hoping not to have to change any of the internals, but we might have to now :(
This seems like the same issue/an extension of #588
I'm making a CLI around an existing module which already has some defaults in it's arguments.
I didn't expect it but Click apparently always passes
None
for options if they are not set, instead of not passing them at all which is what I expected.How can I best do this? Checking if an option
== None
doesn't really sound good.Is there anything that can be done to enhance this?
The text was updated successfully, but these errors were encountered: