add --use-cpp option to script