bin: teach conversion options to report about the options
* bin/common_conv.cc, bin/common_conv.hh: Here. * bin/autfilt.cc, bin/common_trans.cc, bin/ltlcross.cc, bin/ltldo.cc, bin/ltlfilt.cc, bin/ltlgrind.cc, bin/randaut.cc, bin/randltl.cc: Pass the name of the argumennt to the conversion function. * tests/core/ltlcross3.test, tests/core/ltldo.test, tests/core/randaut.test: Add test cases.
This commit is contained in:
parent
1f9f3c77ea
commit
c369f899a3
13 changed files with 67 additions and 54 deletions
|
|
@ -345,7 +345,7 @@ parse_opt(int key, char* arg, struct argp_state*)
|
|||
output_format = count_output;
|
||||
break;
|
||||
case 'n':
|
||||
opt_max_count = to_pos_int(arg);
|
||||
opt_max_count = to_pos_int(arg, "-n/--max-count");
|
||||
break;
|
||||
case 'q':
|
||||
output_format = quiet_output;
|
||||
|
|
@ -385,10 +385,10 @@ parse_opt(int key, char* arg, struct argp_state*)
|
|||
bsize = parse_range(arg, 0, std::numeric_limits<int>::max());
|
||||
break;
|
||||
case OPT_BSIZE_MIN:
|
||||
bsize.min = to_int(arg);
|
||||
bsize.min = to_int(arg, "--bsize-min");
|
||||
break;
|
||||
case OPT_BSIZE_MAX:
|
||||
bsize.max = to_int(arg);
|
||||
bsize.max = to_int(arg, "--bsize-max");
|
||||
break;
|
||||
case OPT_DEFINE:
|
||||
opt->output_define.reset(new output_file(arg ? arg : "-"));
|
||||
|
|
@ -487,10 +487,10 @@ parse_opt(int key, char* arg, struct argp_state*)
|
|||
size = parse_range(arg, 0, std::numeric_limits<int>::max());
|
||||
break;
|
||||
case OPT_SIZE_MIN:
|
||||
size.min = to_int(arg);
|
||||
size.min = to_int(arg, "--size-min");
|
||||
break;
|
||||
case OPT_SIZE_MAX:
|
||||
size.max = to_int(arg);
|
||||
size.max = to_int(arg, "--size-max");
|
||||
break;
|
||||
case OPT_SKIP_ERRORS:
|
||||
error_style = skip_errors;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue