Show help message when -i or -m is not set (#3144)

This commit is contained in:
Anton Romanov
2020-11-17 10:50:23 +03:00
committed by GitHub
parent be044a7003
commit a8bdee6359
5 changed files with 9 additions and 0 deletions

View File

@@ -48,6 +48,7 @@ bool ParseAndCheckCommandLine(int argc, char *argv[]) {
}
if (FLAGS_m.empty()) {
showUsage();
throw std::logic_error("Model is required but not set. Please set -m option.");
}