Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing Accidental 'exit(0)' and Ensuring Proper 'return 1' in examples/main/main.cpp whisper_params_parse #1002

Merged
merged 2 commits into from
Jun 25, 2023

Conversation

faker2048
Copy link
Contributor

@faker2048 faker2048 commented Jun 11, 2023

Fix what appears to be an inadvertent mistake of 'exit(0)'. It should likely return 'false' here to remain consistent with the following code, otherwise the program will never return '1', making the 'if' statement on line 691 meaningless.

@faker2048 faker2048 changed the title Refactor argument parsing logic in examples/main/main.cpp whisper_params_parse Modify examples/main/main.cpp whisper_params_parse correctly returns false Jun 12, 2023
@faker2048 faker2048 changed the title Modify examples/main/main.cpp whisper_params_parse correctly returns false Fixing Accidental 'exit(0)' and Ensuring Proper 'return 1' in examples/main/main.cpp whisper_params_parse Jun 12, 2023
@ggerganov ggerganov merged commit 26b7039 into ggerganov:master Jun 25, 2023
winning1120xx pushed a commit to winning1120xx/whisper.cpp that referenced this pull request Jun 25, 2023
* Refactor whisper_params_parse to return false on failure

* Updated help flag behavior
jacobwu-b pushed a commit to jacobwu-b/Transcriptify-by-whisper.cpp that referenced this pull request Oct 24, 2023
* Refactor whisper_params_parse to return false on failure

* Updated help flag behavior
jacobwu-b pushed a commit to jacobwu-b/Transcriptify-by-whisper.cpp that referenced this pull request Oct 24, 2023
* Refactor whisper_params_parse to return false on failure

* Updated help flag behavior
landtanin pushed a commit to landtanin/whisper.cpp that referenced this pull request Dec 16, 2023
* Refactor whisper_params_parse to return false on failure

* Updated help flag behavior
iThalay pushed a commit to iThalay/whisper.cpp that referenced this pull request Sep 23, 2024
* Refactor whisper_params_parse to return false on failure

* Updated help flag behavior
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants