ltlfilt: implement -q/--quiet as in grep

the existing -q/--quiet option is renamed to --ignore-errors

* src/bin/ltlfilt.cc: Adjust option.
* src/bin/common_output.cc, src/bin/common_output.hh: Add a
quiet_output.
* bench/dtgbasat/prepare.sh: Rename -q to --ignore-errors..
* src/ltltest/remove_x.test: Use -q.
* NEWS: Mention this change.
This commit is contained in:
Alexandre Duret-Lutz 2014-12-11 15:29:31 +01:00
parent 1e84bb1ee7
commit ac225c0ee9
6 changed files with 30 additions and 14 deletions

View file

@ -104,6 +104,8 @@ stream_formula(std::ostream& out,
case latex_output:
spot::ltl::to_latex_string(f, out, full_parenth);
break;
case quiet_output:
break;
}
}
@ -259,6 +261,8 @@ output_formula_checked(const spot::ltl::formula* f,
const char* filename, int linenum,
const char* prefix, const char* suffix)
{
if (output_format == quiet_output)
return;
output_formula(std::cout, f, filename, linenum, prefix, suffix);
std::cout << std::endl;
// Make sure we abort if we can't write to std::cout anymore