Commit 6f50a3f7 authored by Lev Walkin's avatar Lev Walkin

-print-constraints without -F is useless

parent 7e833b6e
...@@ -197,7 +197,14 @@ main(int ac, char **av) { ...@@ -197,7 +197,14 @@ main(int ac, char **av) {
/* /*
* Validate the options combination. * Validate the options combination.
*/ */
if(!print_arg__print_out) { if(print_arg__print_out) {
if((asn1_printer_flags & APF_PRINT_CONSTRAINTS)
&& !print_arg__fix_n_print) {
fprintf(stderr,
"Error: -print-constraints argument requires -E -F\n");
exit(EX_USAGE);
}
} else {
if(print_arg__fix_n_print) { if(print_arg__fix_n_print) {
fprintf(stderr, "Error: -F requires -E\n"); fprintf(stderr, "Error: -F requires -E\n");
exit(EX_USAGE); exit(EX_USAGE);
......
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