def get_command(self, ctx, name):
        """
        Get a specific command by looking up the module.

        :param ctx: Click context
        :param name: Command name
        :return: Module's cli function
        """
        try:
            if sys.version_info[0] == 2:
                name = name.encode('ascii', 'replace')
            mod = __import__('cli.commands.cmd_' + name,
                             None, None, ['cli'])
        except __HOLE__ as e:
            logging.error('Error importing module {0}:\n{0}'.format(name, e))
            exit(1)

        return mod.cli
dataset/ETHPy150Open nickjj/build-a-saas-app-with-flask/cli/cli.py/CLI.get_command