Skip to content

Commit

Permalink
fix reversed argument check
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-martian committed Oct 6, 2022
1 parent f81b432 commit 007f8c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lttoolbox/lt_comp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ int main(int argc, char *argv[])

if(opc == "lr")
{
if (have_vr && !have_vl) {
if (have_vl) {
std::cout << "Error: -l specified, but mode is lr" << std::endl;
cli.print_usage();
}
Expand All @@ -143,7 +143,7 @@ int main(int argc, char *argv[])
}
else if(opc == "rl")
{
if (have_vl && !have_vr) {
if (have_vr) {
std::cout << "Error: -r specified, but mode is rl" << std::endl;
cli.print_usage();
}
Expand Down

0 comments on commit 007f8c7

Please sign in to comment.