@staticmethod
    def require_only_option(sole_option, options):
        base_options = {option.dest for option in BaseCommand.option_list}
        assert all(not value for key, value in options.items()
                   if key not in base_options and key != sole_option)
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/tzmigration/management/commands/tzmigrate.py/Command.require_only_option/original