def getOptparseOption(self):
        if self.Required:
            # If the option doesn't already end with [REQUIRED], add it.
            help_text = self.Help

            if not help_text.strip().endswith('[REQUIRED]'):
                help_text += ' [REQUIRED]'

            if self.ShortName is None:
                option = PyqiOption('--' + self.Name, type=self.Type,
                                    action=self.Action, help=help_text)
            else:
                option = PyqiOption('-' + self.ShortName,
                                    '--' + self.Name, type=self.Type,
                                    action=self.Action, help=help_text)
        else:
            if self.DefaultDescription is None:
                help_text = self.Help % '%s [default: %%default]'
            else:
                help_text = '%s [default: %s]' % (self.Help,
                                                  self.DefaultDescription)

            if self.ShortName is None:
                option = PyqiOption('--' + self.Name, type=self.Type,
                                    action=self.Action, help=help_text,
                                    default=self.Default)
            else:
                option = PyqiOption('-' + self.ShortName,
                                    '--' + self.Name, type=self.Type,
                                    action=self.Action, help=help_text,
                                    default=self.Default)
        return option
dataset/ETHPy150Open biocore/pyqi/pyqi/core/interfaces/optparse/__init__.py/OptparseOption.getOptparseOption/swapped operands of `%`