| 26 | } |
| 27 | |
| 28 | int main(int argc, char *argv[]) { |
| 29 | PJ_INFO info; |
| 30 | info = proj_info(); |
| 31 | if (argc == 2 && argv[1][0] == '-') { |
| 32 | switch (argv[1][1]) { |
| 33 | case 't': |
| 34 | return (test_transform()); |
| 35 | case 's': |
| 36 | std::cout << info.searchpath << std::endl; |
| 37 | return (0); |
| 38 | case 'v': |
| 39 | std::cout << info.major << '.' << info.minor << '.' << info.patch |
| 40 | << std::endl; |
| 41 | return (0); |
| 42 | } |
| 43 | } |
| 44 | std::cerr << "Use option -t, -s or -v" << std::endl; |
| 45 | return (1); |
| 46 | } |
nothing calls this directly
no test coverage detected