Spaces:
Running
Running
examples : handle "main.exe" deprecation
Browse files
examples/deprecation-warning/deprecation-warning.cpp
CHANGED
|
@@ -24,6 +24,10 @@ int main(int argc, char** argv) {
|
|
| 24 |
replacement_filename = "whisper-cli";
|
| 25 |
}
|
| 26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
fprintf(stdout, "\n");
|
| 28 |
fprintf(stdout, "WARNING: The binary '%s' is deprecated.\n", filename.c_str());
|
| 29 |
fprintf(stdout, " Please use '%s' instead.\n", replacement_filename.c_str());
|
|
|
|
| 24 |
replacement_filename = "whisper-cli";
|
| 25 |
}
|
| 26 |
|
| 27 |
+
if (filename == "main.exe") {
|
| 28 |
+
replacement_filename = "whisper-cli.exe";
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
fprintf(stdout, "\n");
|
| 32 |
fprintf(stdout, "WARNING: The binary '%s' is deprecated.\n", filename.c_str());
|
| 33 |
fprintf(stdout, " Please use '%s' instead.\n", replacement_filename.c_str());
|