This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
A custom type for argparse, to facilitate validation of email addresses. | |
Inspired by this SO question: http://stackoverflow.com/questions/14665234/argparse-choices-structure-of-allowed-values | |
and this gist: https://gist.github.com/gurunars/449edbccd0de1449b71524c89d61e1c5 | |
""" | |
import re | |
import argparse | |