]> code.ossystems Code Review - openembedded-core.git/commit
wic: Use argparse instead of optparse
authorAndreas J. Reichel <andreas.reichel@tngtech.com>
Fri, 21 Apr 2017 12:11:42 +0000 (14:11 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 21 May 2017 11:32:01 +0000 (12:32 +0100)
commit4fe9635c72a6ee1becc47d832ab54724176ee811
tree87677da0ff9ca16f7014bac51ed032cd5dd8d64f
parentee55b5685aaa4be92d6d51f8641a559d4e34ce64
wic: Use argparse instead of optparse

* optparse is deprecated and will not be developed further
    (see: https://docs.python.org/2/library/optparse.html)
* argparse supports subcommands, which simplifies definition of
    arguments and options
* reimplement help mechanism through sub-subcommands

[YOCTO #9636]

Signed-off-by: Andreas Reichel <andreas.reichel.ext@siemens.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Daniel Wagner <daniel.wagner@siemens.com>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/lib/wic/engine.py
scripts/lib/wic/help.py
scripts/wic