Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
JayBigGuy10 opened this issue Feb 2, 2019 · 1 comment
Closed

Comments

@JayBigGuy10
Copy link
Contributor

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
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant