mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-28 08:31:25 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			576 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			576 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #include <cstdio>
 | |
| #include <string>
 | |
| 
 | |
| int main(int argc, char** argv) {
 | |
|     std::string filename = "main";
 | |
|     if (argc >= 1) {
 | |
|         filename = argv[0];
 | |
|     }
 | |
| 
 | |
|     // Get only the program name from the full path
 | |
|     size_t pos = filename.find_last_of("/\\");
 | |
|     if (pos != std::string::npos) {
 | |
|         filename = filename.substr(pos+1);
 | |
|     }
 | |
| 
 | |
|     fprintf(stdout, "\n");
 | |
|     fprintf(stdout, "WARNING: The binary '%s' is deprecated.\n", filename.c_str());
 | |
|     fprintf(stdout, "Please use 'llama-mtmd-cli' instead.\n");
 | |
|     fprintf(stdout, "\n");
 | |
| 
 | |
|     return EXIT_FAILURE;
 | |
| }
 | 
