Implemented parsing of command line arguments.