fredrik-corneliusson / click-web

Serve click scripts over the web
MIT License
265 stars 17 forks source link

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

Closed JayBigGuy10 closed 5 years ago

JayBigGuy10 commented 5 years ago

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

JayBigGuy10 commented 5 years ago

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')