Skip to content

Commit

Permalink
Adapt ocrd_cli_options to v1.0.0 of OCR-D/spec
Browse files Browse the repository at this point in the history
  • Loading branch information
kba committed Apr 18, 2018
1 parent 84c5eb1 commit d00389e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ Changed
Fixed
Removed

## [0.0.4] - 2018-04-18

Changed
* Adapted click wrapper in decorators to v1.0.0 of OCR-D/spec

## [0.0.2] - 2018-04-17

Fixed
Expand All @@ -21,5 +26,6 @@ Fixed
Initial Release

<!-- link-labels -->
[0.0.4]: ../../compare/v0.0.2...v0.0.4
[0.0.2]: ../../compare/v0.0.1...v0.0.2
[0.0.1]: ../../compare/HEAD...v0.0.1
11 changes: 6 additions & 5 deletions ocrd/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,14 @@ def cli(mets_url):
print(mets_url)
"""
params = [
click.option('-m', '--mets-url', help="METS URL to validate", required=True),
click.option('-o', '--output-mets', help="METS URL to write resulting METS to"),
click.option('-p', '--parameter', type=click.Path()),
click.option('-m', '--mets', help="METS URL to validate", required=True),
click.option('-w', '--working-dir', help="Working Directory"),
click.option('-I', '--input-file-grp', help='File group(s) used as input.', default='INPUT'),
click.option('-O', '--output-file-grp', help='File group(s) used as output.', default='OUTPUT'),
click.option('-g', '--group-id', help="mets:file GROUPID"),
click.option('-I', '--input-filegrp', help='File group(s) used as input.', default='INPUT'),
click.option('-O', '--output-filegrp', help='File group(s) used as output.', default='OUTPUT'),
click.option('-o', '--output-mets', help="METS URL to write resulting METS to"),
click.option('-p', '--parameter', type=click.Path()),
click.option('-l', '--log-level', help="Log level", type=click.Choice(['OFF', 'ERROR', 'WARN', 'INFO', 'DEBUG', 'TRACE']), default='INFO'),
]
for param in params:
param(f)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setup(
name='ocrd',
version='0.0.2',
version='0.0.4',
description='OCR-D framework',
long_description=README,
author='Kay-Michael Würzner, Konstantin Baierer',
Expand Down

0 comments on commit d00389e

Please sign in to comment.