Add method to parse cli arguments.