Commit b242122c authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz

dot: add option 'A' to disable 'a'

This way in 2.5 we can make 'a' the default, and tell people to use
SPOT_DOTDEFAULT=A if they want the old behavior in both 2.4 and 2.5.

* spot/twaalgos/dot.cc: Implement the option.
* NEWS, bin/common_aoutput.cc: Mention it.
* tests/core/readsave.test: Test it.
parent 205294c2
......@@ -72,6 +72,8 @@ New in spot 2.3.5.dev (not yet released)
- The print_dot() function will now display names for well known
acceptance conditions under the formula when option 'a' is used.
We plan to enable 'a' by default in a future release, so a new
option 'A' has been added to hide the acceptance condition.
- A new named property for automata called "original-states" can be
used to record the origin of a state before transformation. It is
......
......@@ -88,11 +88,12 @@ static const argp_option options[] =
/**************************************************/
{ nullptr, 0, nullptr, 0, "Output format:", 3 },
{ "dot", 'd',
"1|a|b|B|c|C(COLOR)|e|f(FONT)|h|k|n|N|o|r|R|s|t|v|y|+INT|<INT|#",
"1|a|A|b|B|c|C(COLOR)|e|f(FONT)|h|k|n|N|o|r|R|s|t|v|y|+INT|<INT|#",
OPTION_ARG_OPTIONAL,
"GraphViz's format. Add letters for "
"(1) force numbered states, "
"(a) display acceptance, "
"(a) show acceptance condition, "
"(A) hide acceptance condition, "
"(b) acceptance sets as bullets, "
"(B) bullets except for Büchi/co-Büchi automata, "
"(c) force circular nodes, "
......@@ -102,8 +103,8 @@ static const argp_option options[] =
"(f(FONT)) use FONT, "
"(h) horizontal layout, "
"(k) use state labels when possible, "
"(n) with name, "
"(N) without name, "
"(n) show name, "
"(N) hide name, "
"(o) ordered transitions, "
"(r) rainbow colors for acceptance sets, "
"(R) color acceptance sets by Inf/Fin, "
......
......@@ -187,6 +187,9 @@ namespace spot
case 'a':
opt_show_acc_ = true;
break;
case 'A':
opt_show_acc_ = false;
break;
case 'b':
opt_bullet = true;
opt_bullet_but_buchi = false;
......
......@@ -314,7 +314,7 @@ EOF
autfilt -H input |
SPOT_DEFAULT_FORMAT=dot \
SPOT_DOTDEFAULT=vcsn \
SPOT_DOTDEFAULT=vcsnaA \
SPOT_DOTEXTRA='/* hello world */' \
autfilt >output
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment