bashlib ocrd__parse_argv: allow multiple in/output filegrps
@@ -101,11 +101,11 @@ ocrd__parse_argv () {
ocrd__raise "log level '${ocrd__argv[log_level]}' is invalid"
fi
- if [[ ! "${ocrd__argv[input_file_grp]:=OCR-D-IMG}" =~ OCR-D-(GT-)?(IMG|SEG|OCR|COR)(-[A-Z0-9\-]{3,})? ]];then
+ if [[ ! "${ocrd__argv[input_file_grp]:=OCR-D-IMG}" =~ OCR-D-(GT-)?(IMG|SEG|OCR|COR)(-[A-Z0-9\-]{3,})?(,OCR-D-(GT-)?(IMG|SEG|OCR|COR)(-[A-Z0-9\-]{3,})?)* ]];then
echo >&2 "WARNING: input fileGrp '${ocrd_argv[input_file_grp]}' does not conform to OCR-D spec"
fi
- if [[ ! "${ocrd__argv[output_file_grp]:=OCR-D-OCR}" =~ OCR-D-(GT-)?(IMG|SEG|OCR|COR)(-[A-Z0-9\-]{3,})? ]];then
+ if [[ ! "${ocrd__argv[output_file_grp]:=OCR-D-OCR}" =~ OCR-D-(GT-)?(IMG|SEG|OCR|COR)(-[A-Z0-9\-]{3,})?(,OCR-D-(GT-)?(IMG|SEG|OCR|COR)(-[A-Z0-9\-]{3,})?)* ]];then
echo >&2 "WARNING: output fileGrp '${ocrd_argv[output_file_grp]}' does not conform to OCR-D spec"
fi
