@CommandHelp('Remove server logs.',
        '  Options:',
        '    -s <string>  - Comma separated selected server log file numbers. You can get these numbers by \'list selected\' command.',
        '                   This will remove files from selected file list',
        '                   Format : -s \'1,2,5\'',
        '    -a <string>  - Comma separated server log file numbers. You can get these numbers by \'list\' command.',
        '                   This will remove files from all and selected lists',
        '                   Format : -a \'1,2,5\'')
    def _do_default(self, line):
        if not line:
            raise ShellException(
                "Could not understand remove request, " +
                "see 'help remove'")
        mods = self.parseModifiers(line)
        line = mods['line']

        tline = line[:]
        selected_remove_list = []
        all_remove_list = []
        while tline:
            word = tline.pop(0)
            if word == '-a':
                try:
                    values = strip_string(tline.pop(0))
                    for i in values.split(","):
                        index = 1-int(i)
                        all_remove_list.append(index)
                except:
                    pass
            elif word == '-s':
                try:
                    values = strip_string(tline.pop(0))
                    for i in values.split(","):
                        index = int(i)-1
                        selected_remove_list.append(index)
                except:
                    pass
            else:
                raise ShellException("Do not understand '%s' in '%s'" % (word, " ".join(line)))
        all_rm_list = self.logger.get_name_by_index(indices=all_remove_list, cluster_snapshot=False, from_all_list=True)
        selected_rm_list = self.logger.get_name_by_index(indices=selected_remove_list, cluster_snapshot=False, from_all_list=False)
        if all_rm_list:
            self.logger.remove_logs(all_rm_list, cluster_snapshot=False, from_all_list=True)
        if selected_rm_list:
            self.logger.remove_logs(selected_rm_list, cluster_snapshot=False, from_all_list=False)
dataset/ETHPy150Open aerospike/aerospike-admin/lib/logcontroller.py/RemoveServerController._do_default/swapped operands of `-`