-
Notifications
You must be signed in to change notification settings - Fork 33
Closed
Description
When we drafted the resource handling, one of the use cases was installing preset files, i.e. preconfigured (if incomplete) json parameter sets that have a discernable name and can be used as value for --parameter|-p but without the directory path.
That latter part is still missing. So we still need to modify …
core/ocrd/ocrd/decorators/parameter_option.py
Lines 7 to 14 in 0713e0e
| def _handle_param_option(ctx, param, value): | |
| return parse_json_string_or_file(*list(value)) | |
| parameter_option = option('-p', '--parameter', | |
| help="Parameters, either JSON string or path to JSON file", | |
| multiple=True, | |
| default=['{}'], | |
| callback=_handle_param_option) |
Metadata
Metadata
Assignees
Labels
No labels