def getSynopsis(self):

        if self.parent is None:
            command = self.__class__.__name__
            offset = command.find('Options')
            default = "Usage: {0}{1}".format(command[:offset],
                                       (self.longOpt and " [options]") or '')
        else:
            default = (self.longOpt and " [options]") or ''

        synopsis = getattr(self, "synopsis", default).rstrip()

        if self.parent is not None:
            synopsis = ' '.join((self.parent.getSynopsis(),
                                 self.parent.subCommand, synopsis))

        return synopsis
This is called upon unpickling, rather than the default which doesn't
dataset/ETHPy150Open rapyuta/rce/rce-console/rce/console/console.py/CustomOptions.getSynopsis--crossover with--dataset/ETHPy150Open pydata/pandas/pandas/indexes/base.py/_new_Index