bin: overhaul default input selection
If no input have been specified, and the standard input is not a tty all tools now default to reading it. If standard input is a tty, all tools display an error message. Additionally, - is now a shorthand for -F- in all tools. * NEWS: Summarize this. * bin/common_finput.cc, bin/common_finput.hh (check_no_formulas, check_no_automaton): New functions that implement the above istty() logic. * bin/autfilt.cc, bin/dstar2tgba.cc, bin/ltl2tgba.cc, bin/ltl2tgta.cc, bin/ltlcross.cc, bin/ltldo.cc, bin/ltlgrind.cc: Use these function, and recognize '-' if it was not the case. * tests/core/acc_word.test, tests/core/ltldo.test, tests/core/minusx.test, tests/core/readsave.test, tests/core/unambig.test: Adjust some tests to exercise this. * doc/org/autfilt.org, doc/org/csv.org, doc/org/dstar2tgba.org, doc/org/ltl2tgba.org, doc/org/ltlcross.org, doc/org/ltlfilt.org, doc/org/oaut.org: Adjust the documentation and simplify some examples.
This commit is contained in:
parent
abff7eba8e
commit
dd6875d5fe
22 changed files with 119 additions and 54 deletions
26
NEWS
26
NEWS
|
|
@ -2,6 +2,32 @@ New in spot 2.0.3a (not yet released)
|
|||
|
||||
Command-line tools:
|
||||
|
||||
* All tools that input formulas or automata (i.e., autfilt,
|
||||
dstar2tgba, ltl2tgba, ltl2tgta, ltlcross, ltldo, ltlfilt,
|
||||
ltlgrind) now have a more homogeneous handling of the default
|
||||
input.
|
||||
|
||||
- If no formula/automaton have been specified, and the standard
|
||||
input is a not a tty, then the default is to read that. This is a
|
||||
change for ltl2tgba and ltl2tgta. In particular, it simplifies
|
||||
|
||||
genltl --dac | ltl2tgba -F- | autfilt ...
|
||||
|
||||
into
|
||||
|
||||
genltl --dac | ltl2tgba | autfilt ...
|
||||
|
||||
- If standard input is a tty and no other input has been
|
||||
specified, then an error message is printed. This is a change for
|
||||
autfilt, dstar2tgba, ltlcross, ltldo, ltlfilt, ltlgrind, that used
|
||||
to expect the user to type formula or automata at the terminal,
|
||||
confusing people.
|
||||
|
||||
- All tools now accept - as a shorthand for -F-, to force reading
|
||||
input from the standard input (regardless of whether it is a tty
|
||||
or not). This is a change for ltl2tgba, ltl2tgta, ltlcross, and
|
||||
ltldo.
|
||||
|
||||
* ltldo has a new option --errors=... to specify how to deal
|
||||
with errors from executed tools.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue