ltlcross: disable products columns in CSV if --products=0

* bin/ltlcross.cc: Fix it.
* tests/core/ltlcross3.test: Test it.
* NEWS: Mention the bug.
This commit is contained in:
Alexandre Duret-Lutz 2017-01-14 10:43:35 +01:00
parent b210db8949
commit c7141bd189
3 changed files with 11 additions and 1 deletions

View file

@ -497,6 +497,8 @@ parse_opt(int key, char* arg, struct argp_state*)
++arg;
}
products = to_pos_int(arg);
if (products == 0)
products_avg = false;
break;
case OPT_NOCHECKS:
no_checks = true;