bin: make --stats and --format synonyms

* bin/common_output.cc: Make --stats an alias of --format.
* bin/common_aoutput.cc: Make --format an alias of --stats.
* tests/core/acc2.test, tests/core/format.test: Test these aliases.
* NEWS: Mention this.
This commit is contained in:
Alexandre Duret-Lutz 2017-09-04 17:42:13 +02:00
parent f726152ebd
commit e452e09ff7
5 changed files with 10 additions and 2 deletions

View file

@ -26,7 +26,7 @@ set -e
ltl2tgba -H 'GFa & GFb' > in
grep 'Acceptance:' in > expected
ltl2tgba -H 'GFa & GFb' --stats='Acceptance: %a %g' > out1
autfilt -H in --stats='Acceptance: %A %G' > out2
autfilt -H in --format='Acceptance: %A %G' > out2
diff out1 expected
diff out2 expected

View file

@ -23,7 +23,7 @@
set -e
genltl --dac=1..10 --format='%s,%b,%x,%f' > output
genltl --dac=1..10 --stats='%s,%b,%x,%f' > output
cat >expected <<EOF
3,2,1,G!p0
7,6,2,Fp0 -> (!p1 U p0)