def add_config_commands(self, subparser, config):
        aliases = config.get_command_aliases()
        for alias in aliases:
            basecmd = config.get_command_alias_basecmd(alias)
            help = config.get_command_alias_help(alias)

            if self.commands not in basecmd:
                raise Exception("Unknown base command '%s'" % basecmd)

            klass = type(self.commands[basecmd])
            self.add_command(subparser, config, klass, alias, help)
dataset/ETHPy150Open berrange/gerrymander/gerrymander/commands.py/CommandTool.add_config_commands/swapped operands of `not in`