Replace getoptv != -1 test with ~ getoptv test in *.cpp programs.