Bug 9634

Summary: bitbake-whatchanged script should use argparse instead of optparse library
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Humberto Ibarra <humberto.ibarra.lopez>
Component: Scripts and ToolsAssignee: Humberto Ibarra <humberto.ibarra.lopez>
Status: VERIFIED FIXED QA Contact: David Rodriguez <david.israelx.rodriguez.castellanos>
Severity: enhancement    
Priority: Medium+ CC: jose.perez.carranza, ross.burton
Version: 2.2   
Target Milestone: 2.2 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
git whatchanged -v master-log file none

Description Humberto Ibarra 2016-05-14 19:37:10 UTC
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.
Comment 3 David Rodriguez 2016-06-16 14:11:45 UTC
Created attachment 3237 [details]
git whatchanged -v master-log file
Comment 4 David Rodriguez 2016-06-16 14:14:03 UTC
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.