def validateUserPars(configObj,input_dict):
    """ Compares input parameter names specified by user with those already
        recognized by the task.

        Any parameters provided by the user that does not match a known
        task parameter will be reported and a ValueError exception will be
        raised.
    """
    # check to see whether any input parameters are unexpected.
    # Any unexpected parameters provided on input should be reported and
    # the code should stop
    plist = getFullParList(configObj)
    extra_pars = []
    for kw in input_dict:
        if kw not in plist:
            extra_pars.append(kw)
    if len(extra_pars) > 0:
        print ('='*40)
        print ('The following input parameters were not recognized as valid inputs:')
        for p in extra_pars:
            print("    %s"%(p))
        print('\nPlease check the spelling of the parameter(s) and try again...')
        print('='*40)
        raise ValueError
def validateUserPars ( configObj , input_dict ) : plist = getFullParList ( configObj ) extra_pars = [ ] for kw in input_dict : if kw not in plist : extra_pars . append ( kw ) if len ( extra_pars ) > 0 : print ( '=' * 40 ) print ( 'The following input parameters were not recognized as valid inputs:' ) for p in extra_pars : print ( "    %s" % ( p ) ) print ( '\nPlease check the spelling of the parameter(s) and try again...' ) print ( '=' * 40 ) raise ValueError
Compares input parameter names specified by user with those already
        recognized by the task.

        Any parameters provided by the user that does not match a known
        task parameter will be reported and a ValueError exception will be
        raised.