Similar issue to the one described in #8321, only this applies to yocto-layer instead of yocto-bsp script. optparse library is deprecated since 2.7, scripts should use argparse instead.
Humberto, optparse in python3 is still available so priority is a bit lower on this.
some related info on this transition https://docs.python.org/2/library/argparse.html#upgrading-optparse-code
My fault, moving it to M1 again. CCB should agree on any milestone movement.
This is not a priority right now so moving it to next release.
The yocto-layer script, along with yocto-bsp and yocto-kernel, will be removed from public repositories soon as they are no longer maintained. The request was sent to the mailing list [1], meaning this issue is obsolete. [1] https://lists.yoctoproject.org/pipermail/poky/2017-October/011135.html