

def handle(self, *args, **options):
    if (len(args) != 0):
        raise CommandError("Command doesn't accept any arguments")
    locale = options.get('locale')
    domain = options.get('domain')
    verbosity = int(options.get('verbosity'))
    process_all = options.get('all')
    extensions = (options.get('extensions') or ['html'])
    if (domain == 'djangojs'):
        extensions = []
    else:
        extensions = handle_extensions(extensions)
    if ('.js' in extensions):
        raise CommandError("JavaScript files should be examined by using the special 'djangojs' domain only.")
    if process_all:
        if os.path.isdir(os.path.join('conf', 'locale')):
            localedir = os.path.abspath(os.path.join('conf', 'locale'))
        elif os.path.isdir('locale'):
            localedir = os.path.abspath('locale')
        else:
            raise CommandError('This script should be run from the Transifex project tree.')
        locale_dirs = filter(os.path.isdir, glob.glob(('%s/*' % localedir)))
        for locale_dir in locale_dirs:
            locale = os.path.basename(locale_dir)
            make_messages(locale, domain, verbosity, False, extensions)
    else:
        make_messages(locale, locale_dirs, verbosity, process_all, extensions)

dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/txcommon/management/commands/txmakemessages.py Command.handle/VarMisuse@277/403 `domain`->`locale_dirs`