Similar issue to the one described in #8321, only this applies to bitbake-whatchanged instead of yocto-bsp script. optparse library is deprecated since 2.7, scripts should use argparse instead.
Sent patch http://lists.openembedded.org/pipermail/openembedded-core/2016-May/121779.html
Already in master http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=21af6c60b0b5368bacd809dbea91125bc717ce43
Created attachment 3237 [details] git whatchanged -v master-log file
Code static review done. Sections of the code work correctly on commands with <whatchange> option like “git whatchanged” or “bitbake- whatchanged master”. Also, exception management gives proper help statements on the Terminal.