def METHOD_NAME(opts, pars):
    err = ''
    if not opts.lang:
        err += '--language is REQUIRED '
    if not opts.inDir:
        err += '--input-dir is REQUIRED '
    if not opts.newDir:
        err += '--output-dir is REQUIRED'
    if err:
        pars.error(err)
        sys.exit(1)