Add command line options parser

Change-Id: If5270dbb5de4d8e349a031d3868e46d9826ccd26