Currently, a processor call, if --mets was not given and no mets.xml is present in $PWD, the --help message is given. The reasoning is that if a user calls a processor without any arguments, it makes more sense to provide general help instead of the very specific error message mets.xml could not be found.
However from feedback from @dla-kramski, @ElexaDigitalia_twitter and others, this behavior (in core since 2.12.0 #438 OCR-D/spec#156) is confusing because it is also triggered if -I and -O are provided.
So I propose to change the behavior to this:
- If no options/arguments at all are provided to a processor, then print the
--help
- If METS cannot be found, raise an error saying so
Currently, a processor call, if
--metswas not given and nomets.xmlis present in $PWD, the--helpmessage is given. The reasoning is that if a user calls a processor without any arguments, it makes more sense to provide general help instead of the very specific error messagemets.xml could not be found.However from feedback from @dla-kramski, @ElexaDigitalia_twitter and others, this behavior (in core since 2.12.0 #438 OCR-D/spec#156) is confusing because it is also triggered if
-Iand-Oare provided.So I propose to change the behavior to this:
--help