Partial implementation of command line parsing (TODO: required parameters)