Skip to content

CLI: If METS is not readable, show help and exit 1, OCR-D/core#438#156

Merged
kba merged 2 commits intomasterfrom
processors-wo-args
Jul 21, 2020
Merged

CLI: If METS is not readable, show help and exit 1, OCR-D/core#438#156
kba merged 2 commits intomasterfrom
processors-wo-args

Conversation

@kba
Copy link
Copy Markdown
Member

@kba kba commented Jun 7, 2020

Currently, executing processors built on top of core's BaseProcessor/ocrd_cli_wrap_processor will emit a stacktrace and an exception announcing that the METS file could not be found.

IMHO it is more intuitive, if calling a processor CLI without a METS file present would provide the help screen instead of trying to do the processing even though no arguments might have been provided at all.

Copy link
Copy Markdown
Contributor

@VolkerHartmann VolkerHartmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@kba kba merged commit bb123e4 into master Jul 21, 2020
@kba kba deleted the processors-wo-args branch September 2, 2020 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants