1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-30 00:20:08 +00:00

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.

(From OE-Core rev: 1e5220f74830b99cf8340a4f6977399b5cf49871)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ed Bartosh
2015-09-02 13:58:11 +03:00
committed by Richard Purdie
parent f1bcf47ff4
commit e85f807b87
3 changed files with 27 additions and 1694 deletions
@@ -56,7 +56,7 @@ class DirectPlugin(ImagerPlugin):
return krootfs_dir
@classmethod
def do_create(cls, subcmd, opts, *args):
def do_create(cls, opts, *args):
"""
Create direct image, called from creator as 'direct' cmd
"""