def get_gae_argv(self, argv):
        manager = self.manager
        parser = self.get_parser_from_getopt_options()
        args, extras = parser.parse_known_args(args=argv)

        if args.help:
            parser.print_help()
            sys.exit(1)

        gae_argv = self.get_base_gae_argv()
        for long_option, short_option, is_bool in self.get_getopt_options():
            value = getattr(args, long_option)
            if value is not None:
                if is_bool and value:
                    value = '--%s' % long_option
                elif not is_bool:
                    value = '--%s=%s' % (long_option, value)

                if value:
                    gae_argv.append(value)

        # Add app path.
        gae_argv.append(os.path.abspath(args.app))

        return gae_argv
dataset/ETHPy150Open moraes/tipfy/manage/__init__.py/GaeSdkExtendedAction.get_gae_argv/original