if (args)
{
args = strtok (args, ",");
- do
+ while (args)
{
int value = XARGMATCH (option, args, keys, values);
if (value == 0)
*flags = 0;
else
*flags |= value;
+ args = strtok (NULL, ",");
}
- while ((args = strtok (NULL, ",")));
}
else
*flags = ~0;
{
/* In a series of synonyms, present the most meaningful first, so
that argmatch_valid be more readable. */
- "none - no warnings",
- "error - warnings are errors",
- "yacc - incompatibilities with POSIX YACC",
- "all - all of the above",
+ "none - no warnings",
+ "midrule-values - unset or unused midrule values",
+ "yacc - incompatibilities with POSIX YACC",
+ "all - all of the above",
+ "error - warnings are errors",
0
};
static const int warnings_types[] =
{
warnings_none,
- warnings_error,
+ warnings_midrule_values,
warnings_yacc,
- warnings_all
+ warnings_all,
+ warnings_error
};
ARGMATCH_VERIFY (warnings_args, warnings_types);
-v, --verbose same as `--report=state'\n\
-b, --file-prefix=PREFIX specify a PREFIX for output files\n\
-o, --output=FILE leave output to FILE\n\
- -g, --graph also produce a VCG description of the automaton\n\
+ -g, --graph also output a graph of the automaton\n\
\n\
"), stdout);
break;
case 'W':
- FLAGS_ARGMATCH (warnings, optarg);
+ if (optarg)
+ FLAGS_ARGMATCH (warnings, optarg);
+ else
+ warnings_flag |= warnings_all;
break;
case LOCATIONS_OPTION: