Alignment model and input (#3115)

This commit is contained in:
Anton Romanov
2020-11-16 01:26:04 -08:00
committed by GitHub
parent 9790c1253c
commit 74f8b86e8c
18 changed files with 54 additions and 44 deletions

View File

@@ -43,12 +43,12 @@ bool ParseAndCheckCommandLine(int argc, char *argv[]) {
}
slog::info << "Parsing input parameters" << slog::endl;
if (FLAGS_i.empty()) {
throw std::logic_error("Parameter -i is not set");
if (FLAGS_m.empty()) {
throw std::logic_error("Model is required but not set. Please set -m option.");
}
if (FLAGS_m.empty()) {
throw std::logic_error("Parameter -m is not set");
if (FLAGS_i.empty()) {
throw std::logic_error("Input is required but not set. Please set -i option.");
}
return true;