mirror of https://gerrit.osmocom.org/asn1c
-print-constraints without -F is useless
This commit is contained in:
parent
7e833b6ed4
commit
6f50a3f737
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue