Option parser

Change-Id: Iecaecfde5633b8095525c07e44448f37c93badcc