1#include <cstdio>
 2#include <string>
 3
 4int 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("/\\");
12    if (pos != std::string::npos) {
13        filename = filename.substr(pos+1);
14    }
15
16    fprintf(stdout, "\n");
17    fprintf(stdout, "WARNING: The binary '%s' is deprecated.\n", filename.c_str());
18    fprintf(stdout, "Please use 'llama-mtmd-cli' instead.\n");
19    fprintf(stdout, "\n");
20
21    return EXIT_FAILURE;
22}