Implemented command line parser.