Add -r replace mode option to the scope script.