ocrd.cli.ocrd_tool module¶
OCR-D CLI: ocrd-tool.json management
ocrd ocrd-tool¶
Work with ocrd-tool.json JSON_FILE
ocrd ocrd-tool [OPTIONS] JSON_FILE COMMAND [ARGS]...
Arguments
-
JSON_FILE
¶
Required argument
tool¶
Work with a single tool TOOL_NAME
ocrd ocrd-tool JSON_FILE tool [OPTIONS] TOOL_NAME COMMAND [ARGS]...
Arguments
-
TOOL_NAME
¶
Required argument
parse-params¶
Parse parameters with fallback to defaults and output as shell-eval’able assignments to params var.
ocrd ocrd-tool JSON_FILE tool TOOL_NAME parse-params [OPTIONS]
Options
-
-p
,
--parameter
<parameter>
¶ Parameters, either JSON string or path to JSON file
-
-P
,
--parameter-override
<parameter_override>
¶ Parameter override
-
-j
,
--json
¶
Output JSON instead of shell variables