add getOpt version 2

updated CLI for parsing command line arguments.