Output from tests/test_demo_ocfl_validate_script.py
.
The --version
argument will show version number and exit
> python ocfl-validate.py --version
ocfl-validate.py is part of ocfl-py version 0.0.7
> python ocfl-validate.py fixtures/1.0/good-objects/minimal_uppercase_digests
INFO:ocfl.object:OCFL object at fixtures/1.0/good-objects/minimal_uppercase_digests is VALID
> python ocfl-validate.py -q fixtures/1.0/warn-objects/W004_uses_sha256
INFO:ocfl.object:OCFL object at fixtures/1.0/warn-objects/W004_uses_sha256 is VALID
> python ocfl-validate.py fixtures/1.0/warn-objects/W004_uses_sha256
INFO:ocfl.object:OCFL object at fixtures/1.0/warn-objects/W004_uses_sha256 is VALID
[W004] OCFL Object root inventory SHOULD use sha512 but uses sha256 as the DigestAlgorithm (see https://ocfl.io/draft/spec/#W004)