commandline parsing and unit test stub.