]> code.ossystems Code Review - openembedded-core.git/commit
wic: use optparse instead of cmdln
authorEd Bartosh <ed.bartosh@linux.intel.com>
Wed, 2 Sep 2015 10:58:11 +0000 (13:58 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 2 Sep 2015 22:46:51 +0000 (23:46 +0100)
commit1e5220f74830b99cf8340a4f6977399b5cf49871
tree5ea264836f23fdd607128aff798fdea3e1b5fb63
parentfa43b8b482a9423208f5d2c12994fa15bcbddbb2
wic: use optparse instead of cmdln

cmdln.py https://pypi.python.org/pypi/cmdln was used in
creator.py to parse image plugin options and arguments.

There is no need in such a sofisticated API to do this
simple task. Standard option parser optparse.OptionParser
can do it just fine.

Modified Creator class to work with option parser.
Removed cmdln.py from the wic codebase.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/wic/creator.py
scripts/lib/wic/plugins/imager/direct_plugin.py
scripts/lib/wic/utils/cmdln.py [deleted file]