]> code.ossystems Code Review - openembedded-core.git/commit
texinfo-dummy-native: Rewrite template.py to use argparse
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Thu, 23 May 2019 18:42:54 +0000 (20:42 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 27 May 2019 16:06:27 +0000 (17:06 +0100)
commit60e8de529eb0dfd546d96af3c2cdd7f23041ab45
treef2961dc427d0b6afcab2ec3200f6c36eb32939e6
parentf09cb832fa8e83e7e5faf6bd9464481aef5b4547
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>
meta/recipes-extended/texinfo-dummy-native/texinfo-dummy/template.py