Add command line options to do batch export