def get_parser_from_getopt_options(self):
        manager = self.manager
        section = self.get_config_section()

        usage = '%%(prog)s %(action)s [--config CONFIG] [--app APP] ' \
            '[options]' % dict(action=self.name)

        parser = argparse.ArgumentParser(
            description=self.description,
            usage=usage,
            formatter_class=argparse.RawDescriptionHelpFormatter,
            add_help=False
        )

        for long_option, short_option, is_bool in self.get_getopt_options():
            args = ['--%s' % long_option]
            kwargs = {}

            if short_option:
                args.append(short_option % '-%s')

            if is_bool:
                kwargs['action'] = 'store_true'
                kwargs['default'] = manager.config.getboolean(section,
                    long_option)
            else:
                kwargs['default'] = manager.config.get(section, long_option)

            parser.add_argument(*args, **kwargs)

        # Add app path.
        app_path = manager.config.get(section, 'path', '')
        parser.add_argument('app', nargs='?', default=app_path)

        return parser
dataset/ETHPy150Open moraes/tipfy/manage/__init__.py/GaeSdkExtendedAction.get_parser_from_getopt_options/swapped operands of `%`