- Some cleanup.

- Added 'all-atacks' switch.
This commit is contained in:
ccremers 2005-12-27 12:01:17 +00:00
parent 28774cb94c
commit 5ff71fa661

View File

@ -393,7 +393,7 @@ switcher (const int process, int index)
if (!process) if (!process)
{ {
helptext ("-r,--max-runs=<int>", helptext ("-r,--max-runs=<int>",
"maximum number of runs in the system [5]. Set to 0 for unbounded search."); "maximum number of runs in the system [5]. Set to 0 for unbounded search");
} }
else else
{ {
@ -414,8 +414,10 @@ switcher (const int process, int index)
{ {
if (!process) if (!process)
{ {
helptext ("-l,--max-length=<int>", /* not really needed if you prune runs
"prune traces longer than <int> events [inf]"); helptext ("-l,--max-length=<int>",
"prune traces longer than <int> events [inf]");
*/
} }
else else
{ {
@ -424,6 +426,20 @@ switcher (const int process, int index)
} }
} }
if (detect ('A', "all-attacks", 0))
{
if (!process)
{
helptext ("-A,--all-attacks",
"generate all attacks instead of just one");
}
else
{
switches.prune = 0;
return index;
}
}
if (detect (' ', "max-attacks", 1)) if (detect (' ', "max-attacks", 1))
{ {
if (!process) if (!process)
@ -826,7 +842,7 @@ switcher (const int process, int index)
else else
{ {
printf ("Usage:\n"); printf ("Usage:\n");
printf (" %s [switches] [FILE]\nSwitches:\n\n", progname); printf (" %s [switches] [FILE]\n\nSwitches:\n", progname);
switcher (0, 0); switcher (0, 0);
exit (0); exit (0);
} }