def VerifyTypeClass(arg, argname, legalTypes, ltd, klass, errmsgExtra=''):
    VerifyType(arg, argname, legalTypes, ltd, errmsgExtra)
    # If no exception, the arg is a legal type.
    if type(arg) == types.ClassType and not issubclass(arg, klass):
        # Must test for "is class type" to avoid TypeError from issubclass().
        m = _errmsg(argname, ltd, errmsgExtra)
        raise TypeError(m)

# @@MO: Commented until we determine whether it's useful.
#def VerifyClass(arg, argname, klass, ltd):
#    """Same, but allow *only* a subclass of the right class.
#    """
#    VerifyTypeClass(arg, argname, [types.ClassType], ltd, klass)

# vim: shiftwidth=4 tabstop=4 expandtab
Creates option parser and adds command line arguments to parser.
dataset/ETHPy150Open skyostil/tracy/src/generator/Cheetah/Utils/VerifyType.py/VerifyTypeClass--crossover with--dataset/ETHPy150Open google/fplutil/bin/setup_all_prereqs.py/create_option_parser