def check_parsed_args_compatible(imp, modules, contact, cc, parser):
    """
    Check that the combination of arguments are compatible.

    Args:
        imp(str): CSV import specifier
        modules(str): Modules argument
        contact(str): Contact argument
        cc(str): CC argument
        parser(:class:`argparse.ArgumentParser`): Parser instance

    Raises:
        :class:`argparse.ArgumentParser` error:
            * --import cannot be used with --contact or --cc
            * You cannot set all modules in an area to one contact/cc, enter a
                specific module.
    """

    if imp and (contact or cc):
        parser.error("--import cannot be used with --contact or --cc")

    # Stop user from setting all modules in an area to one contact/cc
    if not modules and (contact or cc):
        parser.error("You cannot set all modules in an area to one contact/cc,"
                     " enter a specific module.")
        # Just in case parser.error doesn't stop the script
        return 1