don't show help on option error

This commit is contained in:
Devaev Maxim
2021-01-17 09:37:44 +03:00
parent 598e2372e5
commit e26973a9f1
2 changed files with 2 additions and 2 deletions

View File

@@ -139,7 +139,7 @@ int main(int argc, char *argv[]) {
case _O_VERSION: puts(VERSION); return 0;
case 0: break;
default: _help(stderr); return 1;
default: return 1;
}
}

View File

@@ -466,7 +466,7 @@ int options_parse(options_s *options, device_s *dev, encoder_s *enc, stream_s *s
case _O_FEATURES: _features(); return 1;
case 0: break;
default: _help(stderr, dev, enc, stream, server); return -1;
default: return -1;
}
}