glapi: glX_proto_size.py: use argparse instead of getopt

Graphics / Mesa 3D Graphics Library / Mesa - Dylan Baker [gmail.com] - 22 May 2015 13:31 UTC

This is roughly equivalent to the original getopt, except that it removes the '-h' short option, which argparse reserves for auto-generated help messages. It does retain the long option specified by the getopt version, and changes the makefile to use that.

9ace0b5 glapi: glX_proto_size.py: use argparse instead of getopt
src/mapi/glapi/gen/Makefile.am | 2 +-
src/mapi/glapi/gen/glX_proto_size.py | 90 +++++++++++++++++-----------------
2 files changed, 46 insertions(+), 46 deletions(-)

Upstream: cgit.freedesktop.org


  • Share