poky/scripts/lib
Paul Eggleton 0d8751fbab scripts/lib/argparse_oe: handle intermixing of optional positional arguments
Python's argparse module can't handle when several optional positional
arguments (set with nargs='?') are intermixed with other options. If the
positional arguments aren't optional then this isn't an issue; thus when
changing positional arguments to optional (as we are doing with devtool)
we need this workaround.

This is a pretty horrible hack, but we don't want this flexibility of
ordering to disappear simply because we made some arguments optional.
Unfortunately the corresponding bug remains unresolved upstream even in
Python 3, and argparse is not really designed to be subclassed so it
doesn't make things like this easy.

(From OE-Core rev: 98fd5de373e16fe5d69a3065f844efc8037385bc)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2015-12-28 09:25:13 +00:00
..
bsp yocto-bsp: Set SRCREV meta/machine revisions to AUTOREV 2015-11-25 07:45:21 +00:00
devtool devtool: update-recipe: use correct method to get bbappend filename 2015-12-28 09:25:13 +00:00
recipetool recipetool: create: basic extraction of name/version from filename 2015-12-28 09:25:13 +00:00
wic wic/help.py: document that mountpoint is optional for part command 2015-12-22 16:08:51 +00:00
argparse_oe.py scripts/lib/argparse_oe: handle intermixing of optional positional arguments 2015-12-28 09:25:13 +00:00
scriptpath.py scripts: consolidate code to find bitbake path 2014-06-25 13:51:45 +01:00
scriptutils.py recipetool: create: prevent attempting to unpack entire DL_DIR 2015-12-28 09:25:13 +00:00