sbtools: factor code in command parser

Change-Id: I790c373b8a0319cdb00650d3c59919bd4b0b96f6
1 file changed