| 1 | #include <cstdio> |
|---|---|
| 2 | #include <string> |
| 3 | |
| 4 | int main(int argc, char** argv) { |
| 5 | std::string filename = "main"; |
| 6 | if (argc >= 1) { |
| 7 | filename = argv[0]; |
| 8 | } |
| 9 | |
| 10 | // Get only the program name from the full path |
| 11 | size_t pos = filename.find_last_of(s: "/\\"); |
| 12 | if (pos != std::string::npos) { |
| 13 | filename = filename.substr(pos: pos+1); |
| 14 | } |
| 15 | |
| 16 | fprintf(stdout, format: "\n"); |
| 17 | fprintf(stdout, format: "WARNING: The binary '%s' is deprecated.\n", filename.c_str()); |
| 18 | fprintf(stdout, format: "Please use 'llama-mtmd-cli' instead.\n"); |
| 19 | fprintf(stdout, format: "\n"); |
| 20 | |
| 21 | return EXIT_FAILURE; |
| 22 | } |
| 23 |