Implements simple parsing of command line parameters.