Add command parser

a command parser to parse and validate command line arguments.