examples : handle "main.exe" deprecation

This commit is contained in:
Georgi Gerganov 2024-12-30 13:00:18 +02:00
parent 7d55637f0b
commit 5136fd92c2
No known key found for this signature in database
GPG Key ID: 449E073F9DC10735

View File

@ -24,6 +24,10 @@ int main(int argc, char** argv) {
replacement_filename = "whisper-cli";
}
if (filename == "main.exe") {
replacement_filename = "whisper-cli.exe";
}
fprintf(stdout, "\n");
fprintf(stdout, "WARNING: The binary '%s' is deprecated.\n", filename.c_str());
fprintf(stdout, " Please use '%s' instead.\n", replacement_filename.c_str());