diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-09-02 13:58:11 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-03 12:43:28 +0100 |
commit | e85f807b874a3e2a576e631fbc82767af00603ed (patch) | |
tree | c774bd6da1900887f0948f859e33363ef1a3146c /scripts/lib/wic/plugins | |
parent | f1bcf47ff4cf90e14e557587f22a169cad8783f7 (diff) | |
download | poky-e85f807b874a3e2a576e631fbc82767af00603ed.tar.gz |
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>
Diffstat (limited to 'scripts/lib/wic/plugins')
-rw-r--r-- | scripts/lib/wic/plugins/imager/direct_plugin.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/plugins/imager/direct_plugin.py b/scripts/lib/wic/plugins/imager/direct_plugin.py index eb17e8d7b7..e9672fe274 100644 --- a/scripts/lib/wic/plugins/imager/direct_plugin.py +++ b/scripts/lib/wic/plugins/imager/direct_plugin.py | |||
@@ -56,7 +56,7 @@ class DirectPlugin(ImagerPlugin): | |||
56 | return krootfs_dir | 56 | return krootfs_dir |
57 | 57 | ||
58 | @classmethod | 58 | @classmethod |
59 | def do_create(cls, subcmd, opts, *args): | 59 | def do_create(cls, opts, *args): |
60 | """ | 60 | """ |
61 | Create direct image, called from creator as 'direct' cmd | 61 | Create direct image, called from creator as 'direct' cmd |
62 | """ | 62 | """ |