Skip to content

Commit

Permalink
examples : handle "main.exe" deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Dec 30, 2024
1 parent 7d55637 commit 5136fd9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/deprecation-warning/deprecation-warning.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 5136fd9

Please sign in to comment.