yt-wsp.sh : print help on empty args

This commit is contained in:
Georgi Gerganov
2023-02-18 09:42:31 +02:00
parent a94897bcde
commit f254e78737
2 changed files with 17 additions and 20 deletions

View File

@ -91,12 +91,12 @@ void whisper_print_usage(int argc, char ** argv, const whisper_params & params);
bool whisper_params_parse(int argc, char ** argv, whisper_params & params) {
for (int i = 1; i < argc; i++) {
std::string arg = argv[i];
if (arg == "-"){
params.fname_inp.push_back(arg);
continue;
}
if (arg[0] != '-') {
params.fname_inp.push_back(arg);
continue;