]> code.ossystems Code Review - openembedded-core.git/commit
texinfo-dummy-native: Rewrite template.py to use argparse
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Wed, 19 Jun 2019 15:45:05 +0000 (17:45 +0200)
committerArmin Kuster <akuster808@gmail.com>
Thu, 27 Jun 2019 13:56:20 +0000 (06:56 -0700)
commitc4949e0109cc823101f56fc192474d3ceaa7d916
tree2b0d124af9f75bb1306f770c755c867b59c58af9
parentb2c4a3571c9311ee7fca165817ccad6d77ecac7c
texinfo-dummy-native: Rewrite template.py to use argparse

The original version of template.py parses the arguments manually. This
fails when looking for the -E option if, e.g., an -I option is specified
without any space before its argument, and that argument contains the
letter 'E'.

A minor difference to the original version is that it parsed the
arguments in the order they were specified on the command line whereas
this version will always handle -E before -o.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/recipes-extended/texinfo-dummy-native/texinfo-dummy/template.py