Add command line options to code generator program

Change-Id: I4110878fe53eaadb503cb899f4671e90199c0c34