Implemented command line arguments parsing.