mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2025-01-16 19:09:05 +01:00
main : fix std in input (#503)
if we don't add this as an explicit check, then we get an "error: unknown argument: -" later on
This commit is contained in:
parent
09d7d2b68e
commit
69e6e4644a
@ -92,6 +92,11 @@ bool whisper_params_parse(int argc, char ** argv, whisper_params & params) {
|
|||||||
for (int i = 1; i < argc; i++) {
|
for (int i = 1; i < argc; i++) {
|
||||||
std::string arg = argv[i];
|
std::string arg = argv[i];
|
||||||
|
|
||||||
|
if (arg == "-"){
|
||||||
|
params.fname_inp.push_back(arg);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (arg[0] != '-') {
|
if (arg[0] != '-') {
|
||||||
params.fname_inp.push_back(arg);
|
params.fname_inp.push_back(arg);
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user