tools/utils.py
def parse_type(string):
            """ validate that an argument passed in (as string) is a member of
            the list of possible arguments. Offer a suggestion if the case of
            the string, or the hyphens/underscores do not match the expected
            style of the argument.
            """
            if prefer_hyphen:
                newstring = casedness(string).replace("_", "-")
            else:
                newstring = casedness(string).replace("-", "_")
            if string in lst:
                return string
            elif string not in lst and newstring in lst:
                raise argparse.ArgumentTypeError(
                    "{0} is not a supported {1}. Did you mean {2}?".format(
                        string, type_name, newstring))
            else:
                raise argparse.ArgumentTypeError(
                    "{0} is not a supported {1}. Supported {1}s are:\n{2}".
                    format(string, type_name, columnate(lst)))
 validate that an argument passed in (as string) is a member of
            the list of possible arguments. Offer a suggestion if the case of
            the string, or the hyphens/underscores do not match the expected
            style of the argument.
            
validate that an argument passed in (as string) is a member of
the list of possible arguments. Offer a suggestion if the case of
the string, or the hyphens/underscores do not match the expected
style of the argument.
validate that an argument passed in ( as string ) is a member of the list of possible arguments . Offer a suggestion if the case of the string or the hyphens / underscores do not match the expected style of the argument .
def parse_type(string):
            if prefer_hyphen:
                newstring = casedness(string).replace("_", "-")
            else:
                newstring = casedness(string).replace("-", "_")
            if string in lst:
                return string
            elif string not in lst and newstring in lst:
                raise argparse.ArgumentTypeError(
                    "{0} is not a supported {1}. Did you mean {2}?".format(
                        string, type_name, newstring))
            else:
                raise argparse.ArgumentTypeError(
                    "{0} is not a supported {1}. Supported {1}s are:\n{2}".
                    format(string, type_name, columnate(lst)))
def parse_type ( string ) : if prefer_hyphen : newstring = casedness ( string ) . replace ( "_" , "-" ) else : newstring = casedness ( string ) . replace ( "-" , "_" ) if string in lst : return string elif string not in lst and newstring in lst : raise argparse . ArgumentTypeError ( "{0} is not a supported {1}. Did you mean {2}?" . format ( string , type_name , newstring ) ) else : raise argparse . ArgumentTypeError ( "{0} is not a supported {1}. Supported {1}s are:\n{2}" . format ( string , type_name , columnate ( lst ) ) )
validate that an argument passed in (as string) is a member of
the list of possible arguments.
validate that an argument passed in ( as string ) is a member of the list of possible arguments .
""" validate that an argument passed in (as string) is a member of
            the list of possible arguments. Offer a suggestion if the case of
            the string, or the hyphens/underscores do not match the expected
            style of the argument.
            """
string