Skip to content

Commit

Permalink
Print help when there are missing required arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
rvaser committed Apr 4, 2019
1 parent 5de5863 commit 3c08287
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,12 @@ int main(int argc, char* argv[]) {

if (queries_path.empty()) {
fprintf(stderr, "[sword::] error: missing input queries file!\n");
help();
return 1;
}
if (database_path.empty()) {
fprintf(stderr, "[sword::] error: missing input database file!\n");
help();
return 1;
}

Expand Down

0 comments on commit 3c08287

Please sign in to comment.