Add basic command line parsing to TestMain.