fredrik-corneliusson/click-web

Setting Click input type to email doesn't result in an email feild

Closed this issue · 1 comments

I have just been able to get back to my computer to test this and it seems that setting the input type doesn't give a email html box, I have this line for my email option, how do I get the html email box?

@click.option("--email", type=email, help='Input your email here')

www.reddit.com/u/jaybigguy10

I have figured out how to do this:
in the file.py with the @click.options you have to
from click_web.web_click_types import EmailParamType
EMAIL_TYPE = EmailParamType()

and then in the click setup use
@click.option("--email", type=EMAIL_TYPE, help='Input your email here')