OSDN Git Service

glapi: gl_table.py: replace getopt with argparse.
authorDylan Baker <dylanx.c.baker@intel.com>
Wed, 19 Nov 2014 21:36:35 +0000 (13:36 -0800)
committerMatt Turner <mattst88@gmail.com>
Fri, 22 May 2015 18:31:27 +0000 (11:31 -0700)
commitcf718cc964f86dc49c1fc9ed5e39aa5bd87ad931
tree1b2614533557918c8a3ccaa22264539eff7c13b8
parentb6298c7a7143eafea3c1be6e98af1d0239fdf5b7
glapi: gl_table.py: replace getopt with argparse.

This results in slightly less code, but code that is much more readable.
It has the advantage of putting everything together in one place, all of
the code is self documenting, help messages are auto-generated, choices
are automatically enforced, and the syntax is much less C like, taking
advantage of python features and idioms.

Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
Acked-by: Matt Turner <mattst88@gmail.com>
src/mapi/glapi/gen/gl_table.py