mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-02-02 00:57:56 +00:00
examples : handle "main.exe" deprecation
This commit is contained in:
parent
7d55637f0b
commit
5136fd92c2
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user